Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: include/pdf/SkPDFDevice.h

Issue 32233003: Add DPI stettings to SkDocument::CreatePDF(). Tests will be added in a future cl, once DPI will be … (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: use SkScalar instead of double Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/pdf/SkPDFDevice.h
diff --git a/include/pdf/SkPDFDevice.h b/include/pdf/SkPDFDevice.h
index d668be5df38a05ff0be5ee25670b78dfb6cc7877..5826c27103a28b34c153e6871e3be9d8e5bc28ef 100644
--- a/include/pdf/SkPDFDevice.h
+++ b/include/pdf/SkPDFDevice.h
@@ -197,6 +197,10 @@ protected:
virtual bool allowImageFilter(SkImageFilter*) SK_OVERRIDE;
+ void setRasterDpi(SkScalar dpi) {
+ fDpi = dpi;
+ }
+
private:
// TODO(vandebo): push most of SkPDFDevice's state into a core object in
// order to get the right access levels without using friend.
@@ -233,6 +237,7 @@ private:
SkAutoTDelete<SkPDFGlyphSetMap> fFontGlyphUsage;
SkPicture::EncodeBitmap fEncoder;
+ SkScalar fDpi;
SkPDFDevice(const SkISize& layerSize, const SkClipStack& existingClipStack,
const SkRegion& existingClipRegion);

Powered by Google App Engine
This is Rietveld 408576698