Index: src/gpu/GrClipMaskManager.cpp |
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp |
index 7418e76449a3a2b4da775fda97e3b729aa824967..f0d6faf1ff801de9c96a4ffd2e76115282d979db 100644 |
--- a/src/gpu/GrClipMaskManager.cpp |
+++ b/src/gpu/GrClipMaskManager.cpp |
@@ -632,7 +632,7 @@ GrTexture* GrClipMaskManager::CreateAlphaClipMask(GrContext* context, |
texture->resourcePriv().setUniqueKey(key); |
- SkAutoTUnref<GrDrawContext> dc(context->drawContext(texture->asRenderTarget())); |
+ sk_sp<GrDrawContext> dc(context->drawContext(sk_ref_sp(texture->asRenderTarget()))); |
if (!dc) { |
return nullptr; |
} |
@@ -682,7 +682,7 @@ GrTexture* GrClipMaskManager::CreateAlphaClipMask(GrContext* context, |
0xffff, |
0xffff, |
0xffff) |
- if (!stencil_element(dc, &maskSpaceIBounds, kStencilInElement, |
+ if (!stencil_element(dc.get(), &maskSpaceIBounds, kStencilInElement, |
translate, element)) { |
texture->resourcePriv().removeUniqueKey(); |
return nullptr; |
@@ -709,7 +709,7 @@ GrTexture* GrClipMaskManager::CreateAlphaClipMask(GrContext* context, |
paint.setAntiAlias(element->isAA()); |
paint.setCoverageSetOpXPFactory(op, false); |
- draw_element(dc, GrClip::WideOpen(), paint, translate, element); |
+ draw_element(dc.get(), GrClip::WideOpen(), paint, translate, element); |
} |
} |