Index: src/core/SkMultiPictureDraw.cpp |
diff --git a/src/core/SkMultiPictureDraw.cpp b/src/core/SkMultiPictureDraw.cpp |
index 672bd628b7c728220c667d0104bfcd4d183f00d3..4003808310e27682f80b00a3c110ce5ee7cdb788 100644 |
--- a/src/core/SkMultiPictureDraw.cpp |
+++ b/src/core/SkMultiPictureDraw.cpp |
@@ -115,8 +115,6 @@ |
// them (if necessary). Hoisting the free floating layers is deferred until |
// drawing the canvas that requires them. |
SkTDArray<GrHoistedLayer> atlasedNeedRendering, atlasedRecycled; |
- |
- GrLayerHoister::Begin(context); |
for (int i = 0; i < count; ++i) { |
const DrawData& data = fGPUDrawData[i]; |
@@ -201,7 +199,9 @@ |
#if !defined(SK_IGNORE_GPU_LAYER_HOISTING) && SK_SUPPORT_GPU |
GrLayerHoister::UnlockLayers(context, atlasedNeedRendering); |
GrLayerHoister::UnlockLayers(context, atlasedRecycled); |
- GrLayerHoister::End(context); |
-#endif |
-} |
- |
+#if !GR_CACHE_HOISTED_LAYERS |
+ GrLayerHoister::PurgeCache(context); |
+#endif |
+#endif |
+} |
+ |