diff options
author | Ben Wagner <bungeman@google.com> | 2018-04-25 15:27:40 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-27 21:56:38 +0000 |
commit | 275df2e8730676c1e0ccc715a98868c6421bc5f4 (patch) | |
tree | 0aef3dbc8f2c117d879a5da20a27141f151f578e /src/core/SkBlurMask.cpp | |
parent | 34a388edbd277cf23d55627695b4bb6c46230d22 (diff) |
Just pass color glyph masks to filters.
Allow the filters to try to apply themselves to the color mask. Most
mask filters will just return false, but allow them the opprotunity.
This removes the behavior of trying to create a mask from the color
mask.
This updates the blur mask filter to handle kARGB32_Format directly by
using just the alpha (which mirrors current behavior).
Change-Id: I15eb736060ecf9b24aca874758c167b74d9ebc22
Reviewed-on: https://skia-review.googlesource.com/124185
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/core/SkBlurMask.cpp')
-rw-r--r-- | src/core/SkBlurMask.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/SkBlurMask.cpp b/src/core/SkBlurMask.cpp index ccdea57208..f189cd68ac 100644 --- a/src/core/SkBlurMask.cpp +++ b/src/core/SkBlurMask.cpp @@ -97,8 +97,7 @@ void SkMask_FreeImage(uint8_t* image) { bool SkBlurMask::BoxBlur(SkMask* dst, const SkMask& src, SkScalar sigma, SkBlurStyle style, SkIPoint* margin) { - - if (src.fFormat != SkMask::kA8_Format) { + if (src.fFormat != SkMask::kA8_Format && src.fFormat != SkMask::kARGB32_Format) { return false; } |