Index: include/gpu/GrClip.h |
diff --git a/include/gpu/GrClip.h b/include/gpu/GrClip.h |
index cf6e65c976289c52906e3db2183c7ce884cc6a5d..fd8b970e39dc8861695181a369429a0a71d60240 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; |