Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 407f36037da15ba96a2221e1cd0aef6787b567a2..b2d94f52374917cf5dd5bf8d693acfc663dbbce1 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -1822,6 +1822,7 @@ SkSurface* SkGpuDevice::newSurface(const SkImageInfo& info, const SkSurfaceProps |
bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkCanvas* mainCanvas, const SkPicture* mainPicture, |
const SkMatrix* matrix, const SkPaint* paint) { |
+#ifndef SK_IGNORE_GPU_LAYER_HOISTING |
// todo: should handle this natively |
if (paint) { |
return false; |
@@ -1873,6 +1874,9 @@ bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkCanvas* mainCanvas, const SkPicture |
GrLayerHoister::UnlockLayers(fContext, atlasedRecycled); |
return true; |
+#else |
+ return false; |
+#endif |
} |
SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() { |