summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-01 15:24:55 +0000
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-01 15:24:55 +0000
commita81ccc78408be5178d5060a7bc67104a213e9f8b (patch)
treecc3613abb533c95313d0660a87f1b0cdf3803faf
parent3fb4cc8c3b7c3f77245eefef9691f207615938e1 (diff)
downloadinclude-a81ccc78408be5178d5060a7bc67104a213e9f8b.tar.gz
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/include@14501 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--effects/SkBlurMaskFilter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/effects/SkBlurMaskFilter.h b/effects/SkBlurMaskFilter.h
index ddb163e..5fcf463 100644
--- a/effects/SkBlurMaskFilter.h
+++ b/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 */