Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index ecd6730118a4e334b6b27ed415b59c3d99c85b92..ea998b86b04f6e29fe5735e06b23b1e391bf4ecd 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -1996,9 +1996,10 @@ bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkCanvas* mainCanvas, const SkPicture |
return false; |
} |
- SkPicture::AccelData::Key key = SkLayerInfo::ComputeKey(); |
- |
- const SkPicture::AccelData* data = mainPicture->EXPERIMENTAL_getAccelData(key); |
+ const SkBigPicture::AccelData* data = NULL; |
+ if (const SkBigPicture* bp = mainPicture->asSkBigPicture()) { |
+ data = bp->accelData(); |
+ } |
if (!data) { |
return false; |
} |