diff options
author | 2015-11-09 13:51:06 -0800 | |
---|---|---|
committer | 2015-11-09 13:51:06 -0800 | |
commit | 60029a5397f75aae4bdb994f26bd297edc3e433c (patch) | |
tree | ecfe56285b4e3810fb864bd3cb2c07d1855d9638 /src/gpu/SkGpuDevice.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/gpu/SkGpuDevice.cpp')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index c97d24809a..36e0342f78 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -2028,6 +2028,8 @@ bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkCanvas* mainCanvas, const SkPicture SkMatrix initialMatrix = mainCanvas->getTotalMatrix(); + GrLayerHoister::Begin(fContext); + GrLayerHoister::FindLayersToAtlas(fContext, mainPicture, initialMatrix, clipBounds, @@ -2056,6 +2058,7 @@ bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkCanvas* mainCanvas, const SkPicture GrLayerHoister::UnlockLayers(fContext, recycled); GrLayerHoister::UnlockLayers(fContext, atlasedNeedRendering); GrLayerHoister::UnlockLayers(fContext, atlasedRecycled); + GrLayerHoister::End(fContext); return true; #else |