aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkGpuBlurUtils.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@chromium.org>2014-11-19 05:03:18 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-19 05:03:18 -0800
commitb07a94f1cba3976596ae1a7f23d8c2043ba353f3 (patch)
tree9c2d202dc47a62742f950cb9702abc5e4327cf34 /src/effects/SkGpuBlurUtils.cpp
parentb50612cbda6c289ac6d859810c37a2a03f0ae26a (diff)
add roundOut that returns its result
Diffstat (limited to 'src/effects/SkGpuBlurUtils.cpp')
-rw-r--r--src/effects/SkGpuBlurUtils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/effects/SkGpuBlurUtils.cpp b/src/effects/SkGpuBlurUtils.cpp
index 975b7047ce..23128e0cca 100644
--- a/src/effects/SkGpuBlurUtils.cpp
+++ b/src/effects/SkGpuBlurUtils.cpp
@@ -226,8 +226,7 @@ GrTexture* GaussianBlur(GrContext* context,
SkTSwap(dstTexture, tempTexture);
}
- SkIRect srcIRect;
- srcRect.roundOut(&srcIRect);
+ const SkIRect srcIRect = srcRect.roundOut();
// For really small blurs(Certainly no wider than 5x5 on desktop gpus) it is faster to just
// launch a single non separable kernel vs two launches