aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkGpuBlurUtils.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-02-04 11:04:26 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-06 15:12:41 +0000
commita99b6ceff92183b424634f2e7276b9ea1d59e69d (patch)
tree64c99a642565c74e7aac703f07b8669825c90d40 /src/core/SkGpuBlurUtils.cpp
parentadacaef799455013bf00b85a43237ac8d9471ade (diff)
start removing uses of SkScalarMul
BUG=skia:6197 Change-Id: Ic444c7ee4ca547f483dc8232dcacd6d4ba87d913 Reviewed-on: https://skia-review.googlesource.com/8041 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkGpuBlurUtils.cpp')
-rw-r--r--src/core/SkGpuBlurUtils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkGpuBlurUtils.cpp b/src/core/SkGpuBlurUtils.cpp
index c052c50dcb..3c2115e740 100644
--- a/src/core/SkGpuBlurUtils.cpp
+++ b/src/core/SkGpuBlurUtils.cpp
@@ -21,10 +21,10 @@
#define MAX_BLUR_SIGMA 4.0f
static void scale_irect_roundout(SkIRect* rect, float xScale, float yScale) {
- rect->fLeft = SkScalarFloorToInt(SkScalarMul(rect->fLeft, xScale));
- rect->fTop = SkScalarFloorToInt(SkScalarMul(rect->fTop, yScale));
- rect->fRight = SkScalarCeilToInt(SkScalarMul(rect->fRight, xScale));
- rect->fBottom = SkScalarCeilToInt(SkScalarMul(rect->fBottom, yScale));
+ rect->fLeft = SkScalarFloorToInt(rect->fLeft * xScale);
+ rect->fTop = SkScalarFloorToInt(rect->fTop * yScale);
+ rect->fRight = SkScalarCeilToInt(rect->fRight * xScale);
+ rect->fBottom = SkScalarCeilToInt(rect->fBottom * yScale);
}
static void scale_irect(SkIRect* rect, int xScale, int yScale) {