Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2443)

Unified Diff: Source/platform/graphics/filters/FEGaussianBlur.cpp

Issue 170453004: Add constant twoPiDouble/twoPiFloat to MathExtras.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add constant values to header Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/graphics/Path.cpp ('k') | Source/platform/transforms/AffineTransform.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/FEGaussianBlur.cpp
diff --git a/Source/platform/graphics/filters/FEGaussianBlur.cpp b/Source/platform/graphics/filters/FEGaussianBlur.cpp
index 90cce716f9cd408e5f728aa0a22b441cd2a4bcfe..b2def55b4e613de412d9ef352a41f3e67acc8c5f 100644
--- a/Source/platform/graphics/filters/FEGaussianBlur.cpp
+++ b/Source/platform/graphics/filters/FEGaussianBlur.cpp
@@ -41,7 +41,7 @@ using namespace std;
static inline float gaussianKernelFactor()
{
- return 3 / 4.f * sqrtf(2 * piFloat);
+ return 3 / 4.f * sqrtf(twoPiFloat);
}
static const unsigned gMaxKernelSize = 1000;
« no previous file with comments | « Source/platform/graphics/Path.cpp ('k') | Source/platform/transforms/AffineTransform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698