aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2017-05-30 10:56:37 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-31 02:06:36 +0000
commitaa28bfcc5aff5bac0a30c671db9301896d6849fe (patch)
treeba57de98018dab94e42eddd71a2bd7a4b1d4d6b0 /src/effects
parent9d14f936cc09de2a37c05c7af2cf60aa31f74722 (diff)
Allow GPU blur fast path for circles and rects when using ignore xform
Since the only thing it looks like we alter when using the ignore xform flag is the blur radius, this is already handled by the computeXformedSigma function call. Thus it should be safe to just use the current fps and draws for circle and rect. Bug: chromium:724735 Change-Id: I7a2f52dc965dcd875b8c2802141f30607a966347 Reviewed-on: https://skia-review.googlesource.com/18122 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/SkBlurMaskFilter.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp
index cf4ee61fe5..69d929cd77 100644
--- a/src/effects/SkBlurMaskFilter.cpp
+++ b/src/effects/SkBlurMaskFilter.cpp
@@ -1364,10 +1364,6 @@ bool SkBlurMaskFilterImpl::directFilterRRectMaskGPU(GrContext* context,
SkScalar xformedSigma = this->computeXformedSigma(viewMatrix);
if (devRRect.isRect() || devRRect.isCircle()) {
- if (this->ignoreXform()) {
- return false;
- }
-
sk_sp<GrFragmentProcessor> fp;
if (devRRect.isRect()) {
SkScalar pad = 3.0f * xformedSigma;