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

Unified Diff: src/pdf/SkPDFCanon.h

Issue 1916093002: SkDocument/PDF: new API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-04-26 (Tuesday) 15:55:33 EDT Created 4 years, 8 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/SkDocument_PDF_None.cpp ('k') | src/pdf/SkPDFDocument.h » ('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 0af0bbf88aff3c6dd2312826d9947f670903cb8f..6d23e1bad284516d82ce7332aac4266380c4cf12 100644
--- a/src/pdf/SkPDFCanon.h
+++ b/src/pdf/SkPDFCanon.h
@@ -68,7 +68,9 @@ public:
SkTHashMap<uint32_t, bool> fCanEmbedTypeface;
SkPixelSerializer* getPixelSerializer() const { return fPixelSerializer.get(); }
- void setPixelSerializer(SkPixelSerializer* ps) { fPixelSerializer.reset(ps); }
+ void setPixelSerializer(sk_sp<SkPixelSerializer> ps) {
+ fPixelSerializer = std::move(ps);
+ }
sk_sp<SkPDFStream> makeInvertFunction();
sk_sp<SkPDFDict> makeNoSmaskGraphicState();
« no previous file with comments | « src/pdf/SkDocument_PDF_None.cpp ('k') | src/pdf/SkPDFDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698