aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/effects/SkBlurMaskFilter.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-01 15:24:55 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-01 15:24:55 +0000
commit508022cff04c5226cfd1714ba049528f57f9f25e (patch)
treeeb9bba91aef5240dae1a1a890cc3694317d2b2fc /include/effects/SkBlurMaskFilter.h
parent47f9419760b0ae3f22ff55e52246d80dbbda0988 (diff)
expose ConvertRadiusToSigma to aid clients in the API transition to sigma
NOTRY=True R=robertphillips@google.com, fmalita@chromium.org Author: reed@google.com Review URL: https://codereview.chromium.org/264923002 git-svn-id: http://skia.googlecode.com/svn/trunk@14501 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/effects/SkBlurMaskFilter.h')
-rw-r--r--include/effects/SkBlurMaskFilter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/effects/SkBlurMaskFilter.h b/include/effects/SkBlurMaskFilter.h
index ddb163e58a..5fcf463e98 100644
--- a/include/effects/SkBlurMaskFilter.h
+++ b/include/effects/SkBlurMaskFilter.h
@@ -26,6 +26,12 @@ public:
};
#endif
+ /**
+ * If radius > 0, return the corresponding sigma, else return 0. Use this to convert from the
+ * (legacy) idea of specify the blur "radius" to the standard notion of specifying its sigma.
+ */
+ static SkScalar ConvertRadiusToSigma(SkScalar radius);
+
enum BlurFlags {
kNone_BlurFlag = 0x00,
/** The blur layer's radius is not affected by transforms */