Index: tests/PremulAlphaRoundTripTest.cpp |
diff --git a/tests/PremulAlphaRoundTripTest.cpp b/tests/PremulAlphaRoundTripTest.cpp |
index 1e655fb7382583ac00516c42396e61c02a1fb733..8bdb77012ae229920b3c2d94cdd96be58e0a49a9 100644 |
--- a/tests/PremulAlphaRoundTripTest.cpp |
+++ b/tests/PremulAlphaRoundTripTest.cpp |
@@ -58,9 +58,8 @@ static void fillCanvas(SkCanvas* canvas, SkColorType colorType, PackUnpremulProc |
} |
} |
- SkImageInfo info = bmp.info(); |
- info.fColorType = colorType; |
- info.fAlphaType = kUnpremul_SkAlphaType; |
+ const SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), |
+ colorType, kUnpremul_SkAlphaType); |
canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0); |
} |