Index: src/core/SkPicture.cpp |
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp |
index 04f2f93ba73ea3270e43aa4e77c4502f9538081a..f2b199d317176b5c98318e95d4565f08e1c2a5a3 100644 |
--- a/src/core/SkPicture.cpp |
+++ b/src/core/SkPicture.cpp |
@@ -140,9 +140,9 @@ SkPicture* SkPicture::Forwardport(const SkPictInfo& info, const SkPictureData* d |
} |
static bool default_install(const void* src, size_t length, SkBitmap* dst) { |
- SkAutoTUnref<SkData> encoded(SkData::NewWithCopy(src, length)); |
+ sk_sp<SkData> encoded(SkData::MakeWithCopy(src, length)); |
return encoded && SkDEPRECATED_InstallDiscardablePixelRef( |
- SkImageGenerator::NewFromEncoded(encoded), dst); |
+ SkImageGenerator::NewFromEncoded(encoded.get()), dst); |
} |
SkPicture* SkPicture::CreateFromStream(SkStream* stream) { |