Index: src/gpu/GrLayerCache.cpp |
diff --git a/src/gpu/GrLayerCache.cpp b/src/gpu/GrLayerCache.cpp |
index 27cb55b9ee7358bdffcdba9ae2e49b6f73902cab..b2d4c4ed76f81b41d1463cc412ce785478b58fbd 100644 |
--- a/src/gpu/GrLayerCache.cpp |
+++ b/src/gpu/GrLayerCache.cpp |
@@ -467,10 +467,11 @@ void GrLayerCache::purgeAll() { |
SkASSERT(0 == fPictureHash.count()); |
- SkAutoTUnref<GrDrawContext> drawContext(fContext->drawContext()); |
+ SkAutoTUnref<GrDrawContext> drawContext( |
+ fContext->drawContext(fAtlas->getTexture()->asRenderTarget())); |
if (drawContext) { |
- drawContext->discard(fAtlas->getTexture()->asRenderTarget()); |
+ drawContext->discard(); |
} |
} |
#endif |