Index: include/gpu/GrClip.h |
diff --git a/include/gpu/GrClip.h b/include/gpu/GrClip.h |
index cf6e65c976289c52906e3db2183c7ce884cc6a5d..0f6f2e081fa34a45526a987f7c52885b61edee20 100644 |
--- a/include/gpu/GrClip.h |
+++ b/include/gpu/GrClip.h |
@@ -114,6 +114,13 @@ public: |
} |
} |
+ void setScissor(const SkIRect& scissor) { |
bsalomon
2016/03/01 17:38:55
Can we call this setIRect()? Seems like this shoul
robertphillips
2016/03/01 20:11:57
Done.
|
+ this->reset(); |
+ fClipType = kIRect_ClipType; |
+ fOrigin.setZero(); |
+ fClip.fIRect = scissor; |
+ } |
+ |
const SkIRect& irect() const { |
SkASSERT(kIRect_ClipType == fClipType); |
return fClip.fIRect; |