| Index: src/gpu/SkGpuDevice.cpp
|
| diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
|
| index 074eda196b561038b85183cf69abc78d2518dead..30b3668d6b74a709568e357470aa5d182e6cf722 100644
|
| --- a/src/gpu/SkGpuDevice.cpp
|
| +++ b/src/gpu/SkGpuDevice.cpp
|
| @@ -1862,8 +1862,9 @@ bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkCanvas* mainCanvas, const SkPicture
|
| GrLayerHoister::DrawLayers(atlased, nonAtlased, &replacements);
|
|
|
| // Render the entire picture using new layers
|
| - GrRecordReplaceDraw(*mainPicture->fRecord, mainCanvas, mainPicture->fBBH.get(),
|
| - &replacements, NULL);
|
| + const SkMatrix initialMatrix = mainCanvas->getTotalMatrix();
|
| +
|
| + GrRecordReplaceDraw(mainPicture, mainCanvas, &replacements, initialMatrix, NULL);
|
|
|
| GrLayerHoister::UnlockLayers(fContext->getLayerCache(), atlased, nonAtlased);
|
|
|
|
|