diff options
author | robertphillips <robertphillips@google.com> | 2015-11-09 13:51:06 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-09 13:51:06 -0800 |
commit | 60029a5397f75aae4bdb994f26bd297edc3e433c (patch) | |
tree | ecfe56285b4e3810fb864bd3cb2c07d1855d9638 /src/core/SkMultiPictureDraw.cpp | |
parent | e5911c9c5b859d60208f4b9ac4bf2a638f4bc35f (diff) |
Update Layer Hoisting to store its atlas texture in the resource cache
BUG=skia:4346
Committed: https://skia.googlesource.com/skia/+/42597bc99f00553825843b5ed41e81b121773368
Review URL: https://codereview.chromium.org/1406013006
Diffstat (limited to 'src/core/SkMultiPictureDraw.cpp')
-rw-r--r-- | src/core/SkMultiPictureDraw.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkMultiPictureDraw.cpp b/src/core/SkMultiPictureDraw.cpp index 4003808310..672bd628b7 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 } |