diff options
author | 2013-03-11 22:18:54 +0000 | |
---|---|---|
committer | 2013-03-11 22:18:54 +0000 | |
commit | d4d573057ee126bae354934b8d31f5695af387b6 (patch) | |
tree | 5645aaecb87c74a1064d3f05235926c006334fae /src | |
parent | e86af1f4bacd4a9aa99a09905e29b3cf4cea9322 (diff) |
add proper support for solid style, and temporarily turn off my change so the bots can go green |
git-svn-id: http://skia.googlecode.com/svn/trunk@8085 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/effects/SkBlurMask.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/effects/SkBlurMask.cpp b/src/effects/SkBlurMask.cpp index 97b5ab3ee9..3b367024fd 100644 --- a/src/effects/SkBlurMask.cpp +++ b/src/effects/SkBlurMask.cpp @@ -1242,7 +1242,7 @@ bool SkBlurMask::BlurRect(SkMask *dst, const SkRect &src, SkScalar provided_radius, Style style, SkIPoint *margin, SkMask::CreateMode createMode) { int profile_size; - + float radius = SkScalarToFloat(SkScalarMul(provided_radius, kBlurRadiusFudgeFactor)); // adjust blur radius to match interpretation from boxfilter code @@ -1356,6 +1356,11 @@ bool SkBlurMask::BlurRect(SkMask *dst, const SkRect &src, uint8_t *dst_scanline = dp + y*dstWidth + pad; memset(dst_scanline, 0, sw); } + } else if (style == kSolid_Style) { + for (int y = pad ; y < dstHeight-pad ; y++) { + uint8_t *dst_scanline = dp + y*dstWidth + pad; + memset(dst_scanline, 0xff, sw); + } } // normal and solid styles are the same for analytic rect blurs, so don't // need to handle solid specially. |