Chromium Code Reviews| Index: src/gpu/GrClipMaskManager.h |
| diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h |
| index ca5a2477db2cfb4c2e11e58ea39ffe6e2ee0e61e..6995b28276c2b9d218b11a78d9d324b8c7261fe0 100644 |
| --- a/src/gpu/GrClipMaskManager.h |
| +++ b/src/gpu/GrClipMaskManager.h |
| @@ -11,7 +11,6 @@ |
| #include "GrClipMaskCache.h" |
| #include "GrContext.h" |
| #include "GrDrawState.h" |
| -#include "GrDrawTarget.h" |
| #include "GrReducedClip.h" |
| #include "GrStencil.h" |
| #include "GrTexture.h" |
| @@ -44,6 +43,15 @@ public: |
| , fCurrClipMaskType(kNone_ClipMaskType) { |
| } |
| + // The state of the scissor is controlled by the clip manager, no one else should set |
| + // Scissor state |
| + struct ScissorState { |
|
bsalomon
2014/10/29 14:46:50
I think this should be part of ClipTarget or Gpu
|
| + ScissorState() : fEnabled(false) {} |
| + void set(const SkIRect& rect) { fRect = rect; fEnabled = true; } |
| + bool fEnabled; |
| + SkIRect fRect; |
| + }; |
| + |
| /** |
| * Creates a clip mask if necessary as a stencil buffer or alpha texture |
| * and sets the GrGpu's scissor and stencil state. If the return is false |
| @@ -55,7 +63,7 @@ public: |
| const SkRect* devBounds, |
| GrDrawState::AutoRestoreEffects*, |
| GrDrawState::AutoRestoreStencil*, |
| - GrDrawTarget::ScissorState* scissorState); |
| + ScissorState* scissorState); |
| /** |
| * Purge resources to free up memory. TODO: This class shouldn't hold any long lived refs |