aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrClip.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-03-02 09:26:36 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-02 09:26:36 -0800
commit391395dcfbff09a83f8f0e9d3e02d38c855ae2e9 (patch)
tree8f03364d3b4939642a597834f7929dce98c7d2b8 /include/gpu/GrClip.h
parent855bd4415c1a26950e946cc2f8756f7e03b61637 (diff)
Begin weaning GrClipMaskManager off of GrDrawTarget (take 2)
Diffstat (limited to 'include/gpu/GrClip.h')
-rw-r--r--include/gpu/GrClip.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/gpu/GrClip.h b/include/gpu/GrClip.h
index cf6e65c976..fd8b970e39 100644
--- a/include/gpu/GrClip.h
+++ b/include/gpu/GrClip.h
@@ -114,6 +114,13 @@ public:
}
}
+ void setIRect(const SkIRect& irect) {
+ this->reset();
+ fClipType = kIRect_ClipType;
+ fOrigin.setZero();
+ fClip.fIRect = irect;
+ }
+
const SkIRect& irect() const {
SkASSERT(kIRect_ClipType == fClipType);
return fClip.fIRect;