Index: src/gpu/GrClipMaskManager.h |
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h |
index c3a21fd8a2b1e9d6771ebde48bbdaa2731b28b85..974c217705c28609f121f4c15719937b11dbbada 100644 |
--- a/src/gpu/GrClipMaskManager.h |
+++ b/src/gpu/GrClipMaskManager.h |
@@ -106,11 +106,14 @@ private: |
GrClipMaskCache fAACache; // cache for the AA path |
// Attempts to install a series of coverage effects to implement the clip. Return indicates |
- // whether the element list was successfully converted to effects. |
+ // whether the element list was successfully converted to effects. One of the elements may |
+ // be selected to use the scissor. If so scissorRect will be updated to a valid rectangle |
+ // that the caller should set as the scissor rect. If not, scissorRect won't be modified. |
bool installClipEffects(const GrReducedClip::ElementList&, |
GrDrawState::AutoRestoreEffects*, |
const SkVector& clipOffset, |
- const SkRect* devBounds); |
+ const SkRect* devBounds, |
+ SkIRect* scissorRect); |
// Draws the clip into the stencil buffer |
bool createStencilClipMask(int32_t elementsGenID, |