diff options
author | halcanary <halcanary@google.com> | 2014-10-24 12:54:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-24 12:54:53 -0700 |
commit | f622a6c8fd176acf9944de8df00d7f0bb56b67d3 (patch) | |
tree | 11a136e816a7dfd26804f199c5d123a28e70c896 /tests/ImageNewShaderTest.cpp | |
parent | 87ab51862731ab0cd017e63d828fef31a193be40 (diff) |
Add `SkIRect bounds()` convenience method to SkImageInfo and SkBitmap.
Review URL: https://codereview.chromium.org/646213003
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); |