Index: src/gpu/GrTextureParamsAdjuster.cpp |
diff --git a/src/gpu/GrTextureParamsAdjuster.cpp b/src/gpu/GrTextureParamsAdjuster.cpp |
index 429a63affadea40f10701c3e4a343110e260ab27..8868309a80ccdfbba8eb675e5fbec8305f07874e 100644 |
--- a/src/gpu/GrTextureParamsAdjuster.cpp |
+++ b/src/gpu/GrTextureParamsAdjuster.cpp |
@@ -112,7 +112,7 @@ static GrTexture* copy_on_gpu(GrTexture* inputTexture, const SkIRect* subset, |
localRect = SkRect::MakeWH(1.f, 1.f); |
} |
- SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(copy->asRenderTarget())); |
+ sk_sp<GrDrawContext> drawContext(context->drawContext(sk_ref_sp(copy->asRenderTarget()))); |
if (!drawContext) { |
return nullptr; |
} |