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
This commit is contained in:
robertphillips 2016-08-11 08:24:41 -07:00 committed by Commit bot
parent f5fe4b5567
commit 865606df97

View File

@ -1319,8 +1319,8 @@ bool SkBlurMaskFilterImpl::canFilterMaskGPU(const SkRRect& devRRect,
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);