diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-17 21:21:46 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-17 21:21:46 +0000 |
commit | dac522589e9395b4654a1a708f1bd971f37f95a5 (patch) | |
tree | 3190dc309541bf8b706bee789b0a9ffce1771728 /gm/blurrect.cpp | |
parent | 5c056399259bb7ec06ff1eb8ce904001b363276c (diff) |
replace SkBitmap::Config with SkColorType in gms
add helper installMaskPixels() to SkBitmap
BUG=skia:
R=halcanary@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/169913003
git-svn-id: http://skia.googlecode.com/svn/trunk@13482 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/blurrect.cpp')
-rw-r--r-- | gm/blurrect.cpp | 3 |
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; |