commit | 865606df97b7a52baefd75de624aaa7f912721b6 | [log] [tgz] |
---|---|---|
author | robertphillips <robertphillips@google.com> | Thu Aug 11 08:24:41 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Aug 11 08:24:42 2016 -0700 |
tree | 908fc219990f26b28a13d3442c74d46acd4f8d86 | |
parent | f5fe4b556735150d5c6383996b8c0f9816a8db51 [diff] [blame] |
Always give simple circular rrects a shot at being directly blurred on the GPU I believe we want to do this but split it out of https://codereview.chromium.org/2201133002/ (Implement GPU occluded blur mask filter) b.c. it has its own perf implications and changes several GMs on its own. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2232263002 Review-Url: https://codereview.chromium.org/2232263002
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp index e0358bf..65ed7c5 100644 --- a/src/effects/SkBlurMaskFilter.cpp +++ b/src/effects/SkBlurMaskFilter.cpp
@@ -1319,8 +1319,8 @@ return false; } - // We always do circles on the GPU - if (!devRRect.isCircle()) { + // We always do circles and simple circular rrects on the GPU + if (!devRRect.isCircle() && !devRRect.isSimpleCircular()) { static const SkScalar kMIN_GPU_BLUR_SIZE = SkIntToScalar(64); static const SkScalar kMIN_GPU_BLUR_SIGMA = SkIntToScalar(32);