Index: tests/AAClipTest.cpp |
diff --git a/tests/AAClipTest.cpp b/tests/AAClipTest.cpp |
index 961d57ad6b1f81878550b72bc10c2d653bce25bb..cadd1806cf342c2db523fc7a5e65c3d6e6646f4f 100644 |
--- a/tests/AAClipTest.cpp |
+++ b/tests/AAClipTest.cpp |
@@ -71,10 +71,12 @@ static void copyToMask(const SkRegion& rgn, SkMask* mask) { |
mask->fImage = SkMask::AllocImage(mask->computeImageSize()); |
sk_bzero(mask->fImage, mask->computeImageSize()); |
+ SkImageInfo info = SkImageInfo::Make(mask->fBounds.width(), |
+ mask->fBounds.height(), |
+ kAlpha_8_SkColorType, |
+ kPremul_SkAlphaType); |
SkBitmap bitmap; |
- bitmap.setConfig(SkBitmap::kA8_Config, mask->fBounds.width(), |
- mask->fBounds.height(), mask->fRowBytes); |
- bitmap.setPixels(mask->fImage); |
+ bitmap.installPixels(info, mask->fImage, mask->fRowBytes, NULL, NULL); |
// canvas expects its coordinate system to always be 0,0 in the top/left |
// so we translate the rgn to match that before drawing into the mask. |