| Index: src/core/SkMultiPictureDraw.cpp
|
| diff --git a/src/core/SkMultiPictureDraw.cpp b/src/core/SkMultiPictureDraw.cpp
|
| index 4003808310e27682f80b00a3c110ce5ee7cdb788..672bd628b7c728220c667d0104bfcd4d183f00d3 100644
|
| --- a/src/core/SkMultiPictureDraw.cpp
|
| +++ b/src/core/SkMultiPictureDraw.cpp
|
| @@ -116,6 +116,8 @@ void SkMultiPictureDraw::draw(bool flush) {
|
| // 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];
|
| // we only expect 1 context for all the canvases
|
| @@ -199,9 +201,7 @@ void SkMultiPictureDraw::draw(bool flush) {
|
| #if !defined(SK_IGNORE_GPU_LAYER_HOISTING) && SK_SUPPORT_GPU
|
| GrLayerHoister::UnlockLayers(context, atlasedNeedRendering);
|
| GrLayerHoister::UnlockLayers(context, atlasedRecycled);
|
| -#if !GR_CACHE_HOISTED_LAYERS
|
| - GrLayerHoister::PurgeCache(context);
|
| -#endif
|
| + GrLayerHoister::End(context);
|
| #endif
|
| }
|
|
|
|
|