| Index: tests/ReadPixelsTest.cpp
|
| diff --git a/tests/ReadPixelsTest.cpp b/tests/ReadPixelsTest.cpp
|
| index 97088b703e1d11f0638ed9c5b62059f8a6dc0dc3..0b36bc8d22f09604208b30690ed83ea746dfb46d 100644
|
| --- a/tests/ReadPixelsTest.cpp
|
| +++ b/tests/ReadPixelsTest.cpp
|
| @@ -122,8 +122,10 @@ static void fill_src_canvas(SkCanvas* canvas) {
|
| static void fill_src_texture(GrTexture* texture) {
|
| SkBitmap bmp = make_src_bitmap();
|
| bmp.lockPixels();
|
| - texture->writePixels(0, 0, DEV_W, DEV_H, kSkia8888_GrPixelConfig, bmp.getPixels(),
|
| + texture->writePixels(NULL, 0, 0, DEV_W, DEV_H, kSkia8888_GrPixelConfig, bmp.getPixels(),
|
| bmp.rowBytes());
|
| + texture->setFromRawPixels(true);
|
| + texture->setException(true);
|
| bmp.unlockPixels();
|
| }
|
| #endif
|
|
|