Index: src/core/SkPictureData.cpp |
diff --git a/src/core/SkPictureData.cpp b/src/core/SkPictureData.cpp |
index 68789acddf0f3d48452ea23e49087ac0ad783388..cc529e3ecaa0378dfd15fdfdbd45ea538f17613c 100644 |
--- a/src/core/SkPictureData.cpp |
+++ b/src/core/SkPictureData.cpp |
@@ -268,7 +268,7 @@ void SkPictureData::serialize(SkWStream* stream, |
SkFactorySet factSet; // buffer refs factSet, so factSet must come first. |
SkBinaryWriteBuffer buffer(SkBinaryWriteBuffer::kCrossProcess_Flag); |
buffer.setFactoryRecorder(&factSet); |
- buffer.setPixelSerializer(pixelSerializer); |
+ buffer.setPixelSerializer(sk_ref_sp(pixelSerializer)); |
buffer.setTypefaceRecorder(typefaceSet); |
this->flattenToBuffer(buffer); |