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

Unified Diff: src/effects/SkGpuBlurUtils.cpp

Issue 85463005: remove SkFloatToScalar macro (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add flag to expose SkFloatToScalar to chromium Created 7 years, 1 month 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 | « src/effects/SkDisplacementMapEffect.cpp ('k') | src/effects/SkLightingImageFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkGpuBlurUtils.cpp
diff --git a/src/effects/SkGpuBlurUtils.cpp b/src/effects/SkGpuBlurUtils.cpp
index 6188c495404f3260f09a813f6fab7f0ddab59db3..02fdf485d2c2399fa1d0d1e080384050bd03adca 100644
--- a/src/effects/SkGpuBlurUtils.cpp
+++ b/src/effects/SkGpuBlurUtils.cpp
@@ -22,10 +22,10 @@ namespace SkGpuBlurUtils {
#define MAX_BLUR_SIGMA 4.0f
static void scale_rect(SkRect* rect, float xScale, float yScale) {
- rect->fLeft = SkScalarMul(rect->fLeft, SkFloatToScalar(xScale));
- rect->fTop = SkScalarMul(rect->fTop, SkFloatToScalar(yScale));
- rect->fRight = SkScalarMul(rect->fRight, SkFloatToScalar(xScale));
- rect->fBottom = SkScalarMul(rect->fBottom, SkFloatToScalar(yScale));
+ rect->fLeft = SkScalarMul(rect->fLeft, xScale);
+ rect->fTop = SkScalarMul(rect->fTop, yScale);
+ rect->fRight = SkScalarMul(rect->fRight, xScale);
+ rect->fBottom = SkScalarMul(rect->fBottom, yScale);
}
static float adjust_sigma(float sigma, int *scaleFactor, int *radius) {
« no previous file with comments | « src/effects/SkDisplacementMapEffect.cpp ('k') | src/effects/SkLightingImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698