Lines Matching refs:reduced
856 // reduced stack.
1021 // Get the reduced version of the stack.
1024 const GrReducedClip* reduced = new (storage.get()) GrReducedClip(stack, queryBounds);
1027 reduced->elements().isEmpty() ||
1028 SkClipStack::kInvalidGenID != reduced->elementsGenID(),
1031 if (!reduced->elements().isEmpty()) {
1032 REPORTER_ASSERT_MESSAGE(reporter, reduced->hasIBounds(), testCase.c_str());
1040 GrClip::IsInsideClip(reduced->ibounds(), stackBounds),
1043 REPORTER_ASSERT_MESSAGE(reporter, reduced->requiresAA() == doAA, testCase.c_str());
1046 // Build a new clip stack based on the reduced clip elements
1048 if (GrReducedClip::InitialState::kAllOut == reduced->initialState()) {
1052 for (ElementList::Iter iter(reduced->elements()); iter.get(); iter.next()) {
1056 SkIRect ibounds = reduced->hasIBounds() ? reduced->ibounds() : kIBounds;
1062 // convert both the original stack and reduced stack to SkRegions and see if they're equal
1071 reduced->~GrReducedClip();
1093 const GrReducedClip* reduced = new (storage.get()) GrReducedClip(stack, bounds);
1095 REPORTER_ASSERT(reporter, reduced->elements().count() == 1);
1097 REPORTER_ASSERT(reporter, SkClipStack::kInvalidGenID != reduced->elementsGenID());
1099 reduced->~GrReducedClip();
1178 const GrReducedClip reduced(stack, testCases[i].testBounds);
1179 REPORTER_ASSERT(reporter, reduced.elements().count() == testCases[i].reducedClipCount);
1180 SkASSERT(reduced.elements().count() == testCases[i].reducedClipCount);
1181 if (reduced.elements().count()) {
1182 REPORTER_ASSERT(reporter, reduced.elementsGenID() == testCases[i].reducedGenID);
1183 SkASSERT(reduced.elementsGenID() == testCases[i].reducedGenID);
1185 REPORTER_ASSERT(reporter, reduced.initialState() == testCases[i].initialState);
1186 SkASSERT(reduced.initialState() == testCases[i].initialState);
1187 REPORTER_ASSERT(reporter, reduced.hasIBounds());
1188 SkASSERT(reduced.hasIBounds());
1189 REPORTER_ASSERT(reporter, reduced.ibounds() == testCases[i].clipIRect);
1190 SkASSERT(reduced.ibounds() == testCases[i].clipIRect);
1202 const GrReducedClip reduced(stack, bounds);
1203 REPORTER_ASSERT(reporter, reduced.elements().isEmpty());
1219 const GrReducedClip reduced(stack, queryBounds);
1228 REPORTER_ASSERT_MESSAGE(reporter, reduced.elements().isEmpty(), testName.c_str());
1230 GrReducedClip::InitialState::kAllOut == reduced.initialState(),
1236 !reduced.hasIBounds() ||
1237 GrClip::IsInsideClip(reduced.ibounds(), queryBounds),
1239 REPORTER_ASSERT_MESSAGE(reporter, reduced.elements().isEmpty(), testName.c_str());
1241 GrReducedClip::InitialState::kAllIn == reduced.initialState(),
1249 REPORTER_ASSERT_MESSAGE(reporter, reduced.elements().isEmpty(), testName.c_str());
1250 REPORTER_ASSERT_MESSAGE(reporter, reduced.hasIBounds(), testName.c_str());
1251 REPORTER_ASSERT_MESSAGE(reporter, expectedScissor == reduced.ibounds(),
1254 GrReducedClip::InitialState::kAllIn == reduced.initialState(),
1263 REPORTER_ASSERT_MESSAGE(reporter, numExpectedElems == reduced.elements().count(),
1265 REPORTER_ASSERT_MESSAGE(reporter, reduced.hasIBounds(), testName.c_str());
1266 REPORTER_ASSERT_MESSAGE(reporter, expectedClipIBounds == reduced.ibounds(),
1268 REPORTER_ASSERT_MESSAGE(reporter, reduced.requiresAA() == !reduced.elements().isEmpty(),
1382 const GrReducedClip reduced(stack, queryBounds);
1383 REPORTER_ASSERT(reporter, !reduced.hasIBounds());
1384 REPORTER_ASSERT(reporter, reduced.elements().isEmpty());
1386 GrReducedClip::InitialState::kAllOut == reduced.initialState());