diff options
Diffstat (limited to 'src/gpu/GrAppliedClip.h')
-rw-r--r-- | src/gpu/GrAppliedClip.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrAppliedClip.h b/src/gpu/GrAppliedClip.h index 90068669db..bfe3383e16 100644 --- a/src/gpu/GrAppliedClip.h +++ b/src/gpu/GrAppliedClip.h @@ -11,8 +11,10 @@ #include "GrFragmentProcessor.h" #include "GrScissorState.h" #include "GrWindowRectsState.h" + #include "SkClipStack.h" + /** * Produced by GrHardClip. It provides a set of modifications to the hardware drawing state that * implement the clip. @@ -53,8 +55,7 @@ public: } bool doesClip() const { - return fScissorState.scissorTest() == GrScissorTest::kEnabled || this->hasStencilClip() || - fWindowRectsState.enabled(); + return fScissorState.enabled() || this->hasStencilClip() || fWindowRectsState.enabled(); } bool operator==(const GrAppliedHardClip& that) const { |