Lines Matching refs:state
90 // The input shapes+state to ClipStack
104 // Update the default matrix, aa, and op state for elements that are added.
112 // matrix, aa, and op state.
178 TestCaseBuilder& state(ClipStack::ClipState state) {
179 fExpectedState = state;
342 "%s, clip state expected %d, actual %d",
390 "%s, restoring an empty save record should not change clip state: "
397 // Should be wide open if everything is restored to base state
500 // Tests that the initialized state of the clip stack is wide-open
502 run_test_case(r, TestCase::Build("initial-state", SkIRect::MakeWH(100, 100)).finishTest());
527 .state(ClipState::kDeviceRect)
536 .state(ClipState::kDeviceRect)
545 .state(ClipState::kDeviceRect)
554 .state(ClipState::kDeviceRect)
563 .state(ClipState::kComplex)
581 .state(ClipState::kComplex)
608 .state(ClipState::kComplex)
618 .state(ClipState::kComplex)
627 .state(ClipState::kComplex)
648 .state(ClipState::kDeviceRRect)
657 .state(ClipState::kDeviceRRect)
666 .state(ClipState::kComplex)
669 // Same AA state can combine in the same local coordinate space
677 .state(ClipState::kComplex)
685 .state(ClipState::kComplex)
704 .state(ClipState::kDeviceRRect)
712 .state(ClipState::kDeviceRect)
720 .state(ClipState::kComplex)
735 .state(ClipState::kDeviceRect)
741 .state(ClipState::kDeviceRect)
758 .state(ClipState::kDeviceRRect)
767 .state(ClipState::kComplex)
779 .state(ClipState::kEmpty)
785 .state(ClipState::kEmpty)
793 .state(ClipState::kEmpty)
803 .state(ClipState::kDeviceRect)
812 .state(ClipState::kDeviceRRect)
822 .state(ClipState::kDeviceRRect)
835 .state(ClipState::kDeviceRect)
843 .state(ClipState::kComplex)
851 .state(ClipState::kDeviceRRect)
857 .state(ClipState::kComplex)
865 .state(ClipState::kComplex)
873 .state(ClipState::kComplex)
887 .state(ClipState::kComplex)
894 .state(ClipState::kComplex)
917 .state(ClipState::kComplex)
924 .state(ClipState::kDeviceRect)
931 .state(ClipState::kComplex)
938 .state(ClipState::kComplex)
960 .state(ClipState::kEmpty)
966 .state(ClipState::kEmpty)
972 .state(ClipState::kEmpty)
978 .state(ClipState::kEmpty)
988 .state(ClipState::kWideOpen)
994 .state(ClipState::kWideOpen)
1000 .state(ClipState::kWideOpen)
1006 .state(ClipState::kWideOpen)
1010 // Tests that an empty shape updates the clip state directly without needing an element
1017 .state(ClipState::kEmpty)
1023 .state(ClipState::kWideOpen)
1031 .state(ClipState::kComplex)
1046 .state(ClipState::kComplex)
1067 .state(ClipState::kComplex)
1093 .state(ClipState::kComplex)
1104 .state(ClipState::kComplex)
1108 // Tests that a single rect is treated as kDeviceRect state when it's axis-aligned and intersect.
1117 .state(ClipState::kDeviceRect)
1126 .state(ClipState::kComplex)
1133 .state(ClipState::kComplex)
1137 // Tests that a single rrect is treated as kDeviceRRect state when it's axis-aligned and intersect.
1147 .state(ClipState::kDeviceRRect)
1156 .state(ClipState::kComplex)
1163 .state(ClipState::kComplex)
1184 .state(ClipState::kDeviceRect)
1196 .state(ClipState::kDeviceRRect)
1204 .state(ClipState::kComplex)
1223 .state(ClipState::kDeviceRect)
1235 .state(ClipState::kDeviceRRect)
1243 .state(ClipState::kComplex)
1260 .state(ClipState::kDeviceRect)
1265 .state(ClipState::kDeviceRRect)
1272 .state(ClipState::kComplex)
1278 .state(ClipState::kComplex)
1285 .state(ClipState::kEmpty)
1290 .state(ClipState::kEmpty)
1298 .state(ClipState::kComplex)
1304 .state(ClipState::kComplex)
1328 .state(ClipState::kComplex)
1336 .state(ClipState::kComplex)
1344 .state(ClipState::kComplex)
1352 .state(ClipState::kComplex)
1362 .state(ClipState::kComplex)
1370 .state(ClipState::kComplex)
1378 .state(ClipState::kComplex)
1386 .state(ClipState::kComplex)
1394 .state(ClipState::kEmpty)
1400 .state(ClipState::kEmpty)
1406 .state(ClipState::kEmpty)
1412 .state(ClipState::kEmpty)
1421 .state(ClipState::kComplex)
1428 .state(ClipState::kComplex)
1435 .state(ClipState::kComplex)
1442 .state(ClipState::kComplex)
1446 // Tests that shapes with mixed AA state that contain each other can still be consolidated,
1465 .state(ClipState::kComplex)
1474 .state(ClipState::kComplex)
1483 .state(ClipState::kComplex)
1490 .state(ClipState::kComplex)
1494 // Tests that a shape that contains the device bounds updates the clip state directly
1505 .state(ClipState::kWideOpen)
1509 .state(ClipState::kWideOpen)
1513 .state(ClipState::kWideOpen)
1519 .state(ClipState::kEmpty)
1523 .state(ClipState::kEmpty)
1527 .state(ClipState::kEmpty)
1543 .state(ClipState::kEmpty)
1551 .state(ClipState::kComplex)
1560 .state(ClipState::kDeviceRect)
1569 .state(ClipState::kDeviceRRect)
1578 .state(ClipState::kComplex)
1644 ClipStack::ClipState state = ClipStack::ClipState::kComplex;
1657 state = ClipStack::ClipState::kDeviceRect;
1665 state = ClipStack::ClipState::kDeviceRRect;
1670 run_test_case(reporter, b.state(state).finishTest());
1700 "Unexpected replace element state");
1705 "Unexpected state after restore, not kDeviceRRect");
1711 "RRect element state not restored properly after replace clip undone");