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

Unified Diff: src/pdf/SkPDFCanon.h

Issue 1772493002: SkPDF: AutoTUnref<T> changes in use (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « src/pdf/SkPDFBitmap.cpp ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFCanon.h
diff --git a/src/pdf/SkPDFCanon.h b/src/pdf/SkPDFCanon.h
index 9ecb3a02d999c16dc853a4c3e7163a9d07e10108..4c92fcbf6fb3846feae0b5ac37027eec3e2a40be 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
« no previous file with comments | « src/pdf/SkPDFBitmap.cpp ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698