Index: src/gpu/GrLayerCache.cpp |
diff --git a/src/gpu/GrLayerCache.cpp b/src/gpu/GrLayerCache.cpp |
index 3c7ab88735d218ffd41237ab172a7f0caf318ba9..8bdc3fb1f12c937787ad6e93d994eadda9ee39e9 100644 |
--- a/src/gpu/GrLayerCache.cpp |
+++ b/src/gpu/GrLayerCache.cpp |
@@ -468,8 +468,8 @@ void GrLayerCache::purgeAll() { |
SkASSERT(0 == fPictureHash.count()); |
if (fAtlas->getTextureOrNull()) { |
- SkAutoTUnref<GrDrawContext> drawContext( |
- fContext->drawContext(fAtlas->getTexture()->asRenderTarget())); |
+ sk_sp<GrDrawContext> drawContext( |
+ fContext->drawContext(sk_ref_sp(fAtlas->getTexture()->asRenderTarget()))); |
if (drawContext) { |
drawContext->discard(); |