Index: tests/ImageNewShaderTest.cpp |
diff --git a/tests/ImageNewShaderTest.cpp b/tests/ImageNewShaderTest.cpp |
index dfc5a24c33f0e31a7a6f77ac9cac318bcad3ab92..1bc77fba66ad9c7a0b864f724486158014dd720b 100644 |
--- a/tests/ImageNewShaderTest.cpp |
+++ b/tests/ImageNewShaderTest.cpp |
@@ -56,7 +56,7 @@ void runShaderTest(skiatest::Reporter* reporter, SkSurface* sourceSurface, SkSur |
destinationCanvas->clear(SK_ColorTRANSPARENT); |
destinationCanvas->drawPaint(paint); |
- SkIRect rect = SkIRect::MakeWH(info.width(), info.height()); |
+ SkIRect rect = info.bounds(); |
SkBitmap bmOrig; |
sourceSurface->getCanvas()->readPixels(rect, &bmOrig); |