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

Unified Diff: src/effects/GrCircleBlurFragmentProcessor.cpp

Issue 1344203002: Fix vs2015 build (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/GrCircleBlurFragmentProcessor.cpp
diff --git a/src/effects/GrCircleBlurFragmentProcessor.cpp b/src/effects/GrCircleBlurFragmentProcessor.cpp
index c5aafdce0eb94e263b349841d6b7454cec38b7e2..bec15042e49b564558ae2e78ee16fd104de240d9 100644
--- a/src/effects/GrCircleBlurFragmentProcessor.cpp
+++ b/src/effects/GrCircleBlurFragmentProcessor.cpp
@@ -112,7 +112,7 @@ static inline float disk(float x, float y, float radius) {
} else if (distSq >= (radius+0.5f)*(radius+0.5f)) {
return 0.0f;
} else {
- float ramp = radius + 0.5f - sqrt(distSq);
+ float ramp = radius + 0.5f - sqrtf(distSq);
SkASSERT(ramp >= 0.0f && ramp <= 1.0f);
return ramp;
}
@@ -134,7 +134,7 @@ static void make_half_kernel(float* kernel, int kernelWH, float sigma) {
float x2 = (x-kernelOff) * (x-kernelOff);
float y2 = (y-kernelOff) * (y-kernelOff);
// The kernel is symmetric so only compute it once for both sides
- kernel[y*kernelWH+(kernelWH-x-1)] = kernel[y*kernelWH+x] = exp(-(x2 + y2) * b);
+ kernel[y*kernelWH+(kernelWH-x-1)] = kernel[y*kernelWH+x] = expf(-(x2 + y2) * b);
tot += 2.0f * kernel[y*kernelWH+x];
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698