Index: src/gpu/GrStencilBuffer.h |
diff --git a/src/gpu/GrStencilBuffer.h b/src/gpu/GrStencilBuffer.h |
index 37d40f16ba73544e6371c4e6f23ed4dd040de343..3765a4c657074768142c0066da562350d77d5acd 100644 |
--- a/src/gpu/GrStencilBuffer.h |
+++ b/src/gpu/GrStencilBuffer.h |
@@ -43,7 +43,8 @@ public: |
bool mustRenderClip(int32_t clipStackGenID, |
const SkIRect& clipSpaceRect, |
const SkIPoint clipSpaceToStencilOffset) const { |
- return fLastClipStackGenID != clipStackGenID || |
+ return SkClipStack::kInvalidGenID == clipStackGenID || |
+ fLastClipStackGenID != clipStackGenID || |
fLastClipSpaceOffset != clipSpaceToStencilOffset || |
!fLastClipStackRect.contains(clipSpaceRect); |
} |