aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkBlurMask.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-28 14:44:54 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-28 14:44:54 +0000
commitc76a4b2a81b5c502ded23dee1e0c5d762028d5cf (patch)
tree21dd269997915875e307d03f5f6bde98b20e1c9d /src/effects/SkBlurMask.h
parentcced37d2c3e49231e6a155721e0dd59e58e67bab (diff)
Revert of Fast path for blurred round rects -- blur a small 9patch rect on the CPU (https://codereview.chromium.org/248613004/)
Reason for revert: Looks like this causes unit tests to fail with a zero constructor like this one: http://108.170.220.120:10117/builders/Test-Win7-ShuttleA-HD2000-x86-Release/builds/2326/steps/RunTests/logs/stdio Original issue's description: > Fast path for blurred round rects -- blur a small 9patch rect on the CPU > And nonlinearly stretch the resulting texture across proxy geometry. > > BUG= > > Committed: http://code.google.com/p/skia/source/detail?r=14392 R=bsalomon@google.com, reed@google.com, humper@google.com TBR=bsalomon@google.com, humper@google.com, reed@google.com NOTREECHECKS=true NOTRY=true BUG= Author: caryclark@google.com Review URL: https://codereview.chromium.org/258893010 git-svn-id: http://skia.googlecode.com/svn/trunk@14400 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects/SkBlurMask.h')
-rw-r--r--src/effects/SkBlurMask.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/effects/SkBlurMask.h b/src/effects/SkBlurMask.h
index d4cd3d1ea3..eb67d4c9f8 100644
--- a/src/effects/SkBlurMask.h
+++ b/src/effects/SkBlurMask.h
@@ -40,16 +40,9 @@ public:
SkIPoint *margin = NULL,
SkMask::CreateMode createMode =
SkMask::kComputeBoundsAndRenderImage_CreateMode);
-
- // forceQuality will prevent BoxBlur from falling back to the low quality approach when sigma
- // is very small -- this can be used predict the margin bump ahead of time without completely
- // replicating the internal logic. This permits not only simpler caching of blurred results,
- // but also being able to predict precisely at what pixels the blurred profile of e.g. a
- // rectangle will lie.
-
static bool BoxBlur(SkMask* dst, const SkMask& src,
SkScalar sigma, Style style, Quality quality,
- SkIPoint* margin = NULL, bool forceQuality = false);
+ SkIPoint* margin = NULL);
// the "ground truth" blur does a gaussian convolution; it's slow
// but useful for comparison purposes.