| Index: tests/WritePixelsTest.cpp
|
| diff --git a/tests/WritePixelsTest.cpp b/tests/WritePixelsTest.cpp
|
| index 567d99412ed62eabf4b5b8ea581de3d9985d04f8..3e44236ab2d12979d44a32a55ebb77739d9f5118 100644
|
| --- a/tests/WritePixelsTest.cpp
|
| +++ b/tests/WritePixelsTest.cpp
|
| @@ -195,7 +195,7 @@ static bool check_write(skiatest::Reporter* reporter, SkCanvas* canvas, const Sk
|
| // At some point this will be unsupported, as we won't allow accessBitmap() to magically call
|
| // readPixels for the client.
|
| SkBitmap secretDevBitmap;
|
| - canvas->readPixels(SkIRect::MakeWH(canvasInfo.width(), canvasInfo.height()), &secretDevBitmap);
|
| + canvas->readPixels(canvasInfo.shape(), &secretDevBitmap);
|
|
|
| SkAutoLockPixels alp(secretDevBitmap);
|
| canvasRowBytes = secretDevBitmap.rowBytes();
|
|
|