diff options
author | Mike Reed <reed@google.com> | 2017-03-03 13:58:10 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-03 19:39:43 +0000 |
commit | cfaa63237b152ae216f1351207bce3ea9808814c (patch) | |
tree | 4812b9bc5f6c8908ec2de778ef31c1447bc181a6 /src/core/SkRasterClipStack.h | |
parent | b7115c68baef47b88f70b14d408e6cf5fab523f7 (diff) |
Revert[2] "Remove SkDraw from device-draw methods, and enable device-centric clipping.""
passes new (augmented) CanvasClipType unittest
fixed rasterclipstack::setnewsize
This reverts commit ea5e676a7b75600edcde3912886486004ccd7626.
BUG=skia:
Change-Id: I004653e0f4d01454662f8516fccab0046486f273
Reviewed-on: https://skia-review.googlesource.com/9185
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkRasterClipStack.h')
-rw-r--r-- | src/core/SkRasterClipStack.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/SkRasterClipStack.h b/src/core/SkRasterClipStack.h index d553f24141..f3e3b17df7 100644 --- a/src/core/SkRasterClipStack.h +++ b/src/core/SkRasterClipStack.h @@ -73,8 +73,12 @@ public: } void setNewSize(int w, int h) { - SkASSERT(fStack.count() == 1); fRootBounds.setXYWH(0, 0, w, h); + + SkASSERT(fStack.count() == 1); + Rec& rec = fStack.top(); + SkASSERT(rec.fDeferredCount == 0); + rec.fRC.setRect(fRootBounds); } const SkRasterClip& rc() const { return fStack.top().fRC; } |