Index: src/gpu/GrClip.cpp |
diff --git a/src/gpu/GrClip.cpp b/src/gpu/GrClip.cpp |
index dc2208ad4389c883bc8d9d557304f65541be11df..b0c8db3744ba48234326758d49dbb6245f725b20 100644 |
--- a/src/gpu/GrClip.cpp |
+++ b/src/gpu/GrClip.cpp |
@@ -54,10 +54,10 @@ bool GrFixedClip::apply(GrContext*, |
SkIRect::MakeWH(drawContext->width(), drawContext->height()))) { |
return false; |
} |
- if (devBounds && !devBounds->intersects(SkRect::Make(tightScissor))) { |
+ if (devBounds && IsOutsideClip(tightScissor, *devBounds)) { |
return false; |
} |
- if (!devBounds || !CanIgnoreScissor(fScissorState.rect(), *devBounds)) { |
+ if (!devBounds || !IsInsideClip(fScissorState.rect(), *devBounds)) { |
if (fHasStencilClip) { |
out->makeScissoredStencil(tightScissor, &fDeviceBounds); |
} else { |