diff options
author | reed <reed@chromium.org> | 2014-11-19 05:03:18 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-19 05:03:18 -0800 |
commit | b07a94f1cba3976596ae1a7f23d8c2043ba353f3 (patch) | |
tree | 9c2d202dc47a62742f950cb9702abc5e4327cf34 /src/core/SkRasterClip.cpp | |
parent | b50612cbda6c289ac6d859810c37a2a03f0ae26a (diff) |
add roundOut that returns its result
BUG=skia:
Review URL: https://codereview.chromium.org/742663002
Diffstat (limited to 'src/core/SkRasterClip.cpp')
-rw-r--r-- | src/core/SkRasterClip.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/SkRasterClip.cpp b/src/core/SkRasterClip.cpp index f820c5a0a4..35197c1ad9 100644 --- a/src/core/SkRasterClip.cpp +++ b/src/core/SkRasterClip.cpp @@ -76,9 +76,6 @@ bool SkRasterClip::setRect(const SkIRect& rect) { ///////////////////////////////////////////////////////////////////////////////////// bool SkRasterClip::setConservativeRect(const SkRect& r, const SkIRect& clipR, bool isInverse) { - SkIRect ir; - r.roundOut(&ir); - SkRegion::Op op; if (isInverse) { op = SkRegion::kDifference_Op; @@ -86,7 +83,7 @@ bool SkRasterClip::setConservativeRect(const SkRect& r, const SkIRect& clipR, bo op = SkRegion::kIntersect_Op; } fBW.setRect(clipR); - fBW.op(ir, op); + fBW.op(r.roundOut(), op); return this->updateCacheAndReturnNonEmpty(); } @@ -178,7 +175,7 @@ bool SkRasterClip::op(const SkPath& path, const SkISize& size, SkRegion::Op op, ir = SkIRect::MakeSize(size); break; case kContinue_MutateResult: - path.getBounds().roundOut(&ir); + ir = path.getBounds().roundOut(); break; } return this->op(ir, op); @@ -287,7 +284,7 @@ bool SkRasterClip::op(const SkRect& r, const SkISize& size, SkRegion::Op op, boo ir = SkIRect::MakeSize(size); break; case kContinue_MutateResult: - r.roundOut(&ir); + ir = r.roundOut(); break; } return this->op(ir, op); |