Chromium Code Reviews| 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); |
|
scroggo
2016/03/11 15:28:35
Will NewFromEncoded be updated separately, or is t
reed1
2016/03/11 19:23:34
Updated separately, just to keep this CL finite.
|
| } |
| SkPicture* SkPicture::CreateFromStream(SkStream* stream) { |