Index: tools/CopyTilesRenderer.cpp |
diff --git a/tools/CopyTilesRenderer.cpp b/tools/CopyTilesRenderer.cpp |
index ebd33d88511b3682330026dba49dac1faa5c8177..b5534f03a7a8697ee0e32b3d91605e3cb8bbf253 100644 |
--- a/tools/CopyTilesRenderer.cpp |
+++ b/tools/CopyTilesRenderer.cpp |
@@ -57,7 +57,8 @@ namespace sk_tools { |
// Draw the picture |
fCanvas->drawPicture(fPicture); |
// Now extract the picture into tiles |
- const SkBitmap& baseBitmap = fCanvas->getDevice()->accessBitmap(false); |
+ SkBitmap baseBitmap; |
+ fCanvas->readPixels(SkIRect::MakeSize(fCanvas->getBaseLayerSize()), &baseBitmap); |
SkIRect subset; |
for (int tileY = 0; tileY < fLargeTileHeight; tileY += this->getTileHeight()) { |
for (int tileX = 0; tileX < fLargeTileWidth; tileX += this->getTileWidth()) { |