| Index: src/gpu/SkGr.cpp
|
| diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp
|
| index 7a5726f9509f3e25e7601186176f302da4b42394..3d6d4ec8bfccd29911e9cf43a113f68aed46c904 100644
|
| --- a/src/gpu/SkGr.cpp
|
| +++ b/src/gpu/SkGr.cpp
|
| @@ -198,13 +198,13 @@ static sk_sp<GrTexture> create_texture_from_yuv(GrContext* ctx, const SkBitmap&
|
| }
|
|
|
| static GrTexture* load_etc1_texture(GrContext* ctx, const SkBitmap &bm, GrSurfaceDesc desc) {
|
| - SkAutoTUnref<SkData> data(bm.pixelRef()->refEncodedData());
|
| + sk_sp<SkData> data(bm.pixelRef()->refEncodedData());
|
| if (!data) {
|
| return nullptr;
|
| }
|
|
|
| const void* startOfTexData;
|
| - desc.fConfig = GrIsCompressedTextureDataSupported(ctx, data, bm.width(), bm.height(),
|
| + desc.fConfig = GrIsCompressedTextureDataSupported(ctx, data.get(), bm.width(), bm.height(),
|
| &startOfTexData);
|
| if (kUnknown_GrPixelConfig == desc.fConfig) {
|
| return nullptr;
|
|
|