Index: bench/RepeatTileBench.cpp |
diff --git a/bench/RepeatTileBench.cpp b/bench/RepeatTileBench.cpp |
index 612a149d6df78325470fb3ceef6d8b4e7b992bb6..957ec2a83e28dd02c06d9ec65a94edcedf4d7eaf 100644 |
--- a/bench/RepeatTileBench.cpp |
+++ b/bench/RepeatTileBench.cpp |
@@ -115,7 +115,8 @@ protected: |
virtual void onPreDraw() SK_OVERRIDE { |
fBitmap.allocPixels(); |
fBitmap.eraseColor(fIsOpaque ? SK_ColorWHITE : 0); |
- fBitmap.setIsOpaque(fIsOpaque); |
+ fBitmap.setAlphaType(fIsOpaque ? |
+ kOpaque_SkAlphaType : kPremul_SkAlphaType); |
draw_into_bitmap(fBitmap); |