Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index c97d24809a2036c16d473437fd3b9bc56737e2f0..36e0342f78b2a522e1c1c47af8e1772f3a5b7b1f 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 |