From 97180af7f5e577a451367aa0c15cfaff1b6076f5 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Tue, 14 Mar 2017 13:42:58 -0400 Subject: 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 Reviewed-by: Chris Dalton --- tests/GrPorterDuffTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/GrPorterDuffTest.cpp') 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()); -- cgit v1.2.3