aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/blurrect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/blurrect.cpp')
-rw-r--r--gm/blurrect.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/blurrect.cpp b/gm/blurrect.cpp
index 3197eb6fc6..52edd6a105 100644
--- a/gm/blurrect.cpp
+++ b/gm/blurrect.cpp
@@ -197,8 +197,7 @@ protected:
SkAutoMaskFreeImage amfi(mask.fImage);
SkBitmap bm;
- bm.setConfig(SkBitmap::kA8_Config, mask.fBounds.width(), mask.fBounds.height());
- bm.setPixels(mask.fImage);
+ bm.installMaskPixels(mask);
center_x = (canvas_size.fWidth - mask.fBounds.width())/2;
center_y = (canvas_size.fHeight - mask.fBounds.height())/2;