Chromium Code Reviews| Index: src/core/SkBitmap.cpp |
| diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
| index 151ab50290f53359b3103a364757b452e6dee469..78d62d93678aa6599d4655ae9141abc3806a17be 100644 |
| --- a/src/core/SkBitmap.cpp |
| +++ b/src/core/SkBitmap.cpp |
| @@ -519,6 +519,12 @@ bool SkBitmap::installPixels(const SkImageInfo& info, void* pixels, size_t rb, |
| return true; |
| } |
| +bool SkBitmap::installMaskPixels(const SkMask& mask) { |
| + return this->installPixels(SkImageInfo::MakeA8(mask.fBounds.width(), |
|
hal.canary
2014/02/17 20:11:31
You are assuming that (mask.fFormat == SkMask::kA8
|
| + mask.fBounds.height()), |
| + mask.fImage, mask.fRowBytes); |
| +} |
| + |
| bool SkBitmap::allocConfigPixels(Config config, int width, int height, |
| bool isOpaque) { |
| SkColorType ct; |