Index: tests/SkpSkGrTest.cpp |
diff --git a/tests/SkpSkGrTest.cpp b/tests/SkpSkGrTest.cpp |
index d1d38dfe8e2702b3e0e3dd01fc09088c5bd5e269..02aabbe2af0258aa41d885f9ad45d5e84aeb2de6 100644 |
--- a/tests/SkpSkGrTest.cpp |
+++ b/tests/SkpSkGrTest.cpp |
@@ -453,11 +453,7 @@ |
SkGpuDevice grDevice(context, texture.get()); |
SkCanvas grCanvas(&grDevice); |
drawPict(pic, &grCanvas, fScaleOversized ? scale : 1); |
- |
- SkBitmap grBitmap; |
- grBitmap.allocPixels(grCanvas.imageInfo()); |
- grCanvas.readPixels(&grBitmap, 0, 0); |
- |
+ const SkBitmap& grBitmap = grDevice.accessBitmap(false); |
if (fTestStep == kCompareBits) { |
fPixelError = similarBits(grBitmap, bitmap); |
int skTime = timePict(pic, &skCanvas); |