diff options
Diffstat (limited to 'tests/ImageNewShaderTest.cpp')
-rw-r--r-- | tests/ImageNewShaderTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ImageNewShaderTest.cpp b/tests/ImageNewShaderTest.cpp index dfc5a24c33..1bc77fba66 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); |