| Index: src/core/SkRasterClip.cpp
|
| diff --git a/src/core/SkRasterClip.cpp b/src/core/SkRasterClip.cpp
|
| index ea1a7db429b468be96c59980de30c4eea6daa874..5afe279b9565a27bef9bd0ded096d6730b248faa 100644
|
| --- a/src/core/SkRasterClip.cpp
|
| +++ b/src/core/SkRasterClip.cpp
|
| @@ -161,18 +161,18 @@ bool SkRasterClip::setPath(const SkPath& path, const SkRegion& clip, bool doAA)
|
| return this->updateCacheAndReturnNonEmpty();
|
| }
|
|
|
| -bool SkRasterClip::op(const SkRRect& rrect, const SkISize& size, SkRegion::Op op, bool doAA) {
|
| +bool SkRasterClip::op(const SkRRect& rrect, const SkIRect& bounds, SkRegion::Op op, bool doAA) {
|
| if (fForceConservativeRects) {
|
| - return this->op(rrect.getBounds(), size, op, doAA);
|
| + return this->op(rrect.getBounds(), bounds, op, doAA);
|
| }
|
|
|
| SkPath path;
|
| path.addRRect(rrect);
|
|
|
| - return this->op(path, size, op, doAA);
|
| + return this->op(path, bounds, op, doAA);
|
| }
|
|
|
| -bool SkRasterClip::op(const SkPath& path, const SkISize& size, SkRegion::Op op, bool doAA) {
|
| +bool SkRasterClip::op(const SkPath& path, const SkIRect& bounds, SkRegion::Op op, bool doAA) {
|
| AUTO_RASTERCLIP_VALIDATE(*this);
|
|
|
| if (fForceConservativeRects) {
|
| @@ -181,7 +181,7 @@ bool SkRasterClip::op(const SkPath& path, const SkISize& size, SkRegion::Op op,
|
| case kDoNothing_MutateResult:
|
| return !this->isEmpty();
|
| case kReplaceClippedAgainstGlobalBounds_MutateResult:
|
| - ir = SkIRect::MakeSize(size);
|
| + ir = bounds;
|
| break;
|
| case kContinue_MutateResult:
|
| ir = path.getBounds().roundOut();
|
| @@ -210,7 +210,7 @@ bool SkRasterClip::op(const SkPath& path, const SkISize& size, SkRegion::Op op,
|
| return this->op(clip, op);
|
| }
|
| } else {
|
| - base.setRect(0, 0, size.width(), size.height());
|
| + base.setRect(bounds);
|
|
|
| if (SkRegion::kReplace_Op == op) {
|
| return this->setPath(path, base, doAA);
|
| @@ -285,7 +285,7 @@ static bool nearly_integral(SkScalar x) {
|
| return x - SkScalarFloorToScalar(x) < domain;
|
| }
|
|
|
| -bool SkRasterClip::op(const SkRect& r, const SkISize& size, SkRegion::Op op, bool doAA) {
|
| +bool SkRasterClip::op(const SkRect& r, const SkIRect& bounds, SkRegion::Op op, bool doAA) {
|
| AUTO_RASTERCLIP_VALIDATE(*this);
|
|
|
| if (fForceConservativeRects) {
|
| @@ -294,7 +294,7 @@ bool SkRasterClip::op(const SkRect& r, const SkISize& size, SkRegion::Op op, boo
|
| case kDoNothing_MutateResult:
|
| return !this->isEmpty();
|
| case kReplaceClippedAgainstGlobalBounds_MutateResult:
|
| - ir = SkIRect::MakeSize(size);
|
| + ir = bounds;
|
| break;
|
| case kContinue_MutateResult:
|
| ir = r.roundOut();
|
|
|