Index: tests/ARGBImageEncoderTest.cpp |
diff --git a/tests/ARGBImageEncoderTest.cpp b/tests/ARGBImageEncoderTest.cpp |
index 9f68a0a151ec8639fdcb77d85dfe893425b60588..bffcaa4f7873001d451f42eb628d7cf22277b8a5 100644 |
--- a/tests/ARGBImageEncoderTest.cpp |
+++ b/tests/ARGBImageEncoderTest.cpp |
@@ -48,7 +48,7 @@ void BitmapTransformerTestClass::onRun(Reporter* reporter) { |
{ |
bitmap.setConfig(configs[configIndex], kWidth, kHeight); |
REPORTER_ASSERT(reporter, bitmap.allocPixels()); |
- bitmap.setIsOpaque(true); |
+ bitmap.setAlphaType(kOpaque_SkAlphaType); |
bitmap.eraseColor(SK_ColorBLUE); |
// Change rows [0,1] from blue to [red,green]. |
SkCanvas canvas(bitmap); |