diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-10-31 00:37:52 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-31 21:46:44 +0000 |
commit | 6982400f9a414bbe7cff5e2dd32cf9893b07c370 (patch) | |
tree | 3bc5ac04d5f18ea2ddf1ddeba4dff105a65496e6 /src/gpu/GrReducedClip.cpp | |
parent | 3cbcb738456f72a9e2aedd96b5e5f20d4074aba0 (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.cpp | 3 |
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; |