Index: src/core/SkMultiPictureDraw.cpp |
diff --git a/src/core/SkMultiPictureDraw.cpp b/src/core/SkMultiPictureDraw.cpp |
index b59b63bffc8b3a4587b210b85f459ada52cd821d..2690e8f7c03787a008261875dfb56cbde4f2b8a0 100644 |
--- a/src/core/SkMultiPictureDraw.cpp |
+++ b/src/core/SkMultiPictureDraw.cpp |
@@ -182,6 +182,9 @@ void SkMultiPictureDraw::draw() { |
#ifndef SK_IGNORE_GPU_LAYER_HOISTING |
GrLayerHoister::UnlockLayers(context, atlasedNeedRendering); |
GrLayerHoister::UnlockLayers(context, atlasedRecycled); |
+#if !GR_CACHE_HOISTED_LAYERS |
+ GrLayerHoister::PurgeCache(context); |
+#endif |
#endif |
} |