Index: src/core/SkPictureShader.cpp |
diff --git a/src/core/SkPictureShader.cpp b/src/core/SkPictureShader.cpp |
index 30dc47ffd9ca4e279772604d6a06ddade82b6e91..76ecfc157029a51521f201b81787c1cba1cb56bd 100644 |
--- a/src/core/SkPictureShader.cpp |
+++ b/src/core/SkPictureShader.cpp |
@@ -133,7 +133,7 @@ SkFlattenable* SkPictureShader::CreateProc(SkReadBuffer& buffer) { |
// Old code always serialized the picture. New code writes a 'true' first if it did. |
if (buffer.isVersionLT(SkReadBuffer::kPictureShaderHasPictureBool_Version) || |
buffer.readBool()) { |
- picture.reset(SkPicture::CreateFromBuffer(buffer)); |
+ picture = SkPicture::MakeFromBuffer(buffer); |
} |
} |
return SkPictureShader::Make(picture, mx, my, &lm, &tile).release(); |