aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFCanon.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf/SkPDFCanon.h')
-rw-r--r--src/pdf/SkPDFCanon.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pdf/SkPDFCanon.h b/src/pdf/SkPDFCanon.h
index 9ecb3a02d9..4c92fcbf6f 100644
--- a/src/pdf/SkPDFCanon.h
+++ b/src/pdf/SkPDFCanon.h
@@ -81,7 +81,8 @@ public:
SkTHashMap<uint32_t, bool> fCanEmbedTypeface;
- SkAutoTUnref<SkPixelSerializer> fPixelSerializer;
+ SkPixelSerializer* getPixelSerializer() const { return fPixelSerializer.get(); }
+ void setPixelSerializer(SkPixelSerializer* ps) { fPixelSerializer.reset(ps); }
private:
struct FontRec {
@@ -116,5 +117,7 @@ private:
SkTHashMap<SkBitmapKey, const SkImage*> fBitmapToImageMap;
SkTHashMap<uint32_t /*ImageUniqueID*/, SkPDFObject*> fPDFBitmapMap;
+
+ SkAutoTUnref<SkPixelSerializer> fPixelSerializer;
};
#endif // SkPDFCanon_DEFINED