Index: src/gpu/GrClipMaskManager.cpp |
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp |
index d710fef9b341cb088656eb3511444aea7cbccdb6..c591bf11826babd6fdfe9861994a1a8bc8da9e7b 100644 |
--- a/src/gpu/GrClipMaskManager.cpp |
+++ b/src/gpu/GrClipMaskManager.cpp |
@@ -268,7 +268,7 @@ |
} else { |
SkIRect scissorSpaceIBounds(clipSpaceIBounds); |
scissorSpaceIBounds.offset(-clip.origin()); |
- if (!GrClip::CanIgnoreScissor(scissorSpaceIBounds, devBounds)) { |
+ if (!SkRect::Make(scissorSpaceIBounds).contains(devBounds)) { |
out->makeScissored(scissorSpaceIBounds); |
} |
return true; |
@@ -302,11 +302,11 @@ |
&clipFP)) { |
SkIRect scissorSpaceIBounds(clipSpaceIBounds); |
scissorSpaceIBounds.offset(-clip.origin()); |
- if (GrClip::CanIgnoreScissor(scissorSpaceIBounds, devBounds)) { |
- out->makeFPBased(std::move(clipFP), SkRect::Make(scissorSpaceIBounds)); |
- } else { |
+ if (!SkRect::Make(scissorSpaceIBounds).contains(devBounds)) { |
out->makeScissoredFPBased(std::move(clipFP), scissorSpaceIBounds); |
- } |
+ return true; |
+ } |
+ out->makeFPBased(std::move(clipFP), SkRect::Make(scissorSpaceIBounds)); |
return true; |
} |
} |
@@ -369,11 +369,7 @@ |
// use both stencil and scissor test to the bounds for the final draw. |
SkIRect scissorSpaceIBounds(clipSpaceIBounds); |
scissorSpaceIBounds.offset(clipSpaceToStencilSpaceOffset); |
- if (GrClip::CanIgnoreScissor(scissorSpaceIBounds, devBounds)) { |
- out->makeStencil(true, devBounds); |
- } else { |
- out->makeScissoredStencil(scissorSpaceIBounds); |
- } |
+ out->makeScissoredStencil(scissorSpaceIBounds); |
return true; |
} |