Index: include/gpu/GrClip.h |
diff --git a/include/gpu/GrClip.h b/include/gpu/GrClip.h |
index ce0f155e2fd49617c3f7259a8ded577b3b1c9025..26aab7005b1fdc8c766010edcde4e16eeedc32ff 100644 |
--- a/include/gpu/GrClip.h |
+++ b/include/gpu/GrClip.h |
@@ -46,6 +46,12 @@ public: |
fHasStencilClip = false; |
} |
+ void makeScissored(SkIRect& scissor) { |
+ fClipCoverageFP.reset(); |
+ fScissorState.set(scissor); |
+ fHasStencilClip = false; |
+ } |
+ |
void makeScissoredFPBased(sk_sp<GrFragmentProcessor> fp, SkIRect& scissor) { |
fClipCoverageFP = fp; |
fScissorState.set(scissor); |