Implement DPI for perspective bitmaps in PDF - we save the bitmap at the resolution requested.
R=reed@google.com, vandebo@chromium.org
Review URL: https://codereview.chromium.org/54913004
git-svn-id: http://skia.googlecode.com/svn/trunk/include@12230 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/pdf/SkPDFDevice.h b/pdf/SkPDFDevice.h
index 8e1f418..51d046d 100644
--- a/pdf/SkPDFDevice.h
+++ b/pdf/SkPDFDevice.h
@@ -194,11 +194,6 @@
return *(fFontGlyphUsage.get());
}
-protected:
- virtual bool onReadPixels(const SkBitmap& bitmap, int x, int y,
- SkCanvas::Config8888) SK_OVERRIDE;
-
- virtual bool allowImageFilter(SkImageFilter*) SK_OVERRIDE;
/**
* rasterDpi - the DPI at which features without native PDF support
@@ -214,6 +209,12 @@
fRasterDpi = rasterDpi;
}
+protected:
+ virtual bool onReadPixels(const SkBitmap& bitmap, int x, int y,
+ SkCanvas::Config8888) SK_OVERRIDE;
+
+ virtual bool allowImageFilter(SkImageFilter*) SK_OVERRIDE;
+
private:
// TODO(vandebo): push most of SkPDFDevice's state into a core object in
// order to get the right access levels without using friend.