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(); |