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