Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 21b2b725401da42f674b3a1d3b370109bf87fa07..4cd23c4fb9bb02063bd90cb854cc371aba51c789 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -1986,6 +1986,8 @@ bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkCanvas* mainCanvas, const SkPicture |
SkMatrix initialMatrix = mainCanvas->getTotalMatrix(); |
+ GrLayerHoister::Begin(fContext); |
+ |
GrLayerHoister::FindLayersToAtlas(fContext, mainPicture, |
initialMatrix, |
clipBounds, |
@@ -2014,6 +2016,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 |