aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkShadowUtils.cpp
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-05-08 09:46:40 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-08 18:53:58 +0000
commitbe25600e9ee1f9a4e1b2e0134265fcf1f6b77397 (patch)
treedd9be75e5f28f6cfaccc4450fc759f28cd777fa0 /src/utils/SkShadowUtils.cpp
parente308a122ef996a64a21a6339e3b50b9edfdf654f (diff)
fix commented-out gaussian
The original was static inline float eval_gaussian(float x) { float factor = 1 - x; return sk_float_exp(-factor * factor * 4) - 0.018f; } Change-Id: I0590f9b4b41870a0145a4fb7aff5ce3fa4d4e412 Reviewed-on: https://skia-review.googlesource.com/15781 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/utils/SkShadowUtils.cpp')
-rw-r--r--src/utils/SkShadowUtils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/SkShadowUtils.cpp b/src/utils/SkShadowUtils.cpp
index 7295e48fd5..c095acfb08 100644
--- a/src/utils/SkShadowUtils.cpp
+++ b/src/utils/SkShadowUtils.cpp
@@ -56,6 +56,7 @@ private:
};
static inline float eval_gaussian(float x) {
+ // x = 1 - x;
// return sk_float_exp(-x * x * 4) - 0.018f;
return 0.00030726194381713867f +