diff options
author | Brian Salomon <bsalomon@google.com> | 2017-03-14 13:42:58 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-14 18:51:49 +0000 |
commit | 97180af7f5e577a451367aa0c15cfaff1b6076f5 (patch) | |
tree | cd1f78c7a03f0b38306a15a819a25fe7df3aa6f1 /tests/GrPorterDuffTest.cpp | |
parent | 1619c2241ab9d00b0615ef6a63a553e9fe04962c (diff) |
Compute clipped draw bounds outside GrAppliedClip.
We will be storing GrAppliedClips alongside ops. The op already stores the
clipped bounds. If GrAppliedClip has draw bounds then as ops combine the
GrAppliedClip's bounds should be merged to be consistent. However, we won't
actually ever use those bounds again so it would be wasteful to merge them.
Change-Id: I4ef3010dc04761e256120a2e0e074bc3c6ff6ca1
Reviewed-on: https://skia-review.googlesource.com/9642
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'tests/GrPorterDuffTest.cpp')
-rw-r--r-- | tests/GrPorterDuffTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/GrPorterDuffTest.cpp b/tests/GrPorterDuffTest.cpp index b09192e3bf..ddca03a497 100644 --- a/tests/GrPorterDuffTest.cpp +++ b/tests/GrPorterDuffTest.cpp @@ -968,7 +968,7 @@ static void test_lcd_coverage_fallback_case(skiatest::Reporter* reporter, const } testLCDCoverageOp; GrProcessorSet::FragmentProcessorAnalysis analysis; - GrAppliedClip clip(SkRect::MakeLargest()); + GrAppliedClip clip; testLCDCoverageOp.analyzeProcessors(&analysis, GrProcessorSet(GrPaint()), &clip, caps); SkASSERT(analysis.hasKnownOutputColor()); |