23 for (
auto oneFill : fts) {
24 for (
auto oneDir : dirs) {
27 one.
addRect(0, 0, 6, 6, oneDir);
28 for (
auto twoFill : fts) {
29 for (
auto twoDir : dirs) {
31 two.setFillType(twoFill);
32 two.addRect(3, 3, 9, 9, twoDir);
static const size_t testCount
bool testPathOp(skiatest::Reporter *reporter, const SkPath &a, const SkPath &b, const SkPathOp shapeOp, const char *testName)
DEF_TEST(PathOpsInverse, reporter)
@ kReverseDifference_SkPathOp
subtract the first path from the op path
@ kDifference_SkPathOp
subtract the op path from the first path
void setFillType(SkPathFillType ft)
SkPath & addRect(const SkRect &rect, SkPathDirection dir, unsigned start)