diff options
Diffstat (limited to 'src/gpu/GrDrawTarget.h')
-rw-r--r-- | src/gpu/GrDrawTarget.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h index 552314bca3..33d5efec4f 100644 --- a/src/gpu/GrDrawTarget.h +++ b/src/gpu/GrDrawTarget.h @@ -37,7 +37,6 @@ protected: public: SK_DECLARE_INST_COUNT(GrDrawTarget) - typedef GrPathRendering::PathTransformType PathTransformType ; /////////////////////////////////////////////////////////////////////////// @@ -693,6 +692,15 @@ public: virtual DrawToken getCurrentDrawToken() { return DrawToken(this, 0); } + // The state of the scissor is controlled by the clip manager, no one else should set + // Scissor state + struct ScissorState { + ScissorState() : fEnabled(false) {} + void set(const SkIRect& rect) { fRect = rect; fEnabled = true; } + bool fEnabled; + SkIRect fRect; + }; + protected: // Extend access to GrDrawState::convertToPEndeingExec to subclasses. void convertDrawStateToPendingExec(GrDrawState* ds) { |