aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrReducedClip.cpp
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-10-31 00:37:52 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-31 21:46:44 +0000
commit6982400f9a414bbe7cff5e2dd32cf9893b07c370 (patch)
tree3bc5ac04d5f18ea2ddf1ddeba4dff105a65496e6 /src/gpu/GrReducedClip.cpp
parent3cbcb738456f72a9e2aedd96b5e5f20d4074aba0 (diff)
Allow GrAppliedClip to have >1 clip coverage FP
Bug: skia:7190 Change-Id: I07fc689b20968a1b9fe2620bf8a33faacf917823 Reviewed-on: https://skia-review.googlesource.com/65401 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrReducedClip.cpp')
-rw-r--r--src/gpu/GrReducedClip.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrReducedClip.cpp b/src/gpu/GrReducedClip.cpp
index 29f483022b..bc3286bdf0 100644
--- a/src/gpu/GrReducedClip.cpp
+++ b/src/gpu/GrReducedClip.cpp
@@ -137,6 +137,9 @@ void GrReducedClip::walkStack(const SkClipStack& stack, const SkRect& queryBound
// account for floating point rounding error that may have occurred during coord transforms.
SkRect relaxedQueryBounds = queryBounds.makeInset(GrClip::kBoundsTolerance,
GrClip::kBoundsTolerance);
+ if (relaxedQueryBounds.isEmpty()) {
+ relaxedQueryBounds = queryBounds;
+ }
SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart);
int numAAElements = 0;