Index: tests/BitmapCopyTest.cpp |
diff --git a/tests/BitmapCopyTest.cpp b/tests/BitmapCopyTest.cpp |
index 6a20668cf6158566f16f32018a514d28d395f0db..3923846226ce42034a7636d10724f7e32f85329b 100644 |
--- a/tests/BitmapCopyTest.cpp |
+++ b/tests/BitmapCopyTest.cpp |
@@ -609,8 +609,8 @@ DEF_TEST(BitmapReadPixels, reporter) { |
for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { |
clear_4x4_pixels(dstPixels); |
- dstInfo.fWidth = gRec[i].fRequestedDstSize.width(); |
- dstInfo.fHeight = gRec[i].fRequestedDstSize.height(); |
+ dstInfo = dstInfo.makeWH(gRec[i].fRequestedDstSize.width(), |
+ gRec[i].fRequestedDstSize.height()); |
bool success = srcBM.readPixels(dstInfo, dstPixels, rowBytes, |
gRec[i].fRequestedSrcLoc.x(), gRec[i].fRequestedSrcLoc.y()); |