Home
last modified time | relevance | path

Searched refs:SkPathOp (Results 1 – 25 of 43) sorted by relevance

12

/third_party/skia/tests/
DPathOpsBuildUseTest.cpp27 builder.add(path0, (SkPathOp) 2); in build1_1()
41 builder.add(path1, (SkPathOp) 2); in build1_1()
55 builder.add(path2, (SkPathOp) 2); in build1_1()
69 builder.add(path3, (SkPathOp) 2); in build1_1()
84 builder.add(path4, (SkPathOp) 2); in build1_1()
99 builder.add(path5, (SkPathOp) 2); in build1_1()
114 builder.add(path6, (SkPathOp) 2); in build1_1()
129 builder.add(path7, (SkPathOp) 2); in build1_1()
144 builder.add(path8, (SkPathOp) 2); in build1_1()
159 builder.add(path9, (SkPathOp) 2); in build1_1()
[all …]
DPathOpsExtendedTest.h35 extern void showOp(const SkPathOp op);
37 const SkPathOp , const char* testName);
39 const SkPathOp , const char* testName, bool checkFail);
41 const SkPathOp, const char* testName);
43 const SkPathOp , const char* testName);
62 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo);
DPathOpsBattles.cpp112 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in battleOp1()
134 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in battleOp2()
159 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in battleOp3()
187 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in battleOp4()
212 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in battleOp5()
244 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in battleOp6()
268 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in battleOp7()
295 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in battleOp8()
320 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in battleOp9()
344 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in battleOp10()
[all …]
DPathOpsOpRectThreadedTest.cpp69 SkPathOpsDebug::OpStr((SkPathOp) op)); in testPathOpsRectsMain()
71 state.outputProgress(pathStr.c_str(), (SkPathOp) op); in testPathOpsRectsMain()
75 if (!testPathOp(state.fReporter, pathA, pathB, (SkPathOp) op, testName.c_str())) { in testPathOpsRectsMain()
159 SkPathOpsDebug::OpStr((SkPathOp) op)); in testPathOpsFastMain()
161 state.outputProgress(pathStr.c_str(), (SkPathOp) op); in testPathOpsFastMain()
165 if (!testPathOp(state.fReporter, pathA, pathB, (SkPathOp) op, testName.c_str())) { in testPathOpsFastMain()
DPathOpsOpCircleThreadedTest.cpp51 SkPathOpsDebug::OpStr((SkPathOp) op)); in testOpCirclesMain()
53 state.outputProgress(pathStr.c_str(), (SkPathOp) op); in testOpCirclesMain()
57 if (!testPathOp(state.fReporter, pathA, pathB, (SkPathOp) op, testName.c_str())) { in testOpCirclesMain()
DPathOpsExtendedTest.cpp43 bool OpDebug(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result
91 void showOp(const SkPathOp op) { in showOp()
248 static SkTDArray<SkPathOp> gTestOp;
252 const SkPathOp shapeOp, const SkMatrix& scale) { in showPathOpPath()
270 const SkPath& a, const SkPath& b, const SkPathOp shapeOp, const SkMatrix& scale, in comparePaths()
533 const SkPathOp shapeOp, const char* testName, ExpectSuccess expectSuccess, in innerPathOp()
604 const SkPathOp shapeOp, const char* testName) { in testPathOp()
610 const SkPathOp shapeOp, const char* testName, bool checkFail) { in testPathOpCheck()
616 const SkPathOp shapeOp, const char* testName) { in testPathOpFuzz()
622 const SkPathOp shapeOp, const char* testName) { in testPathOpFail()
[all …]
DPathOpsOpCubicThreadedTest.cpp59 SkPathOpsDebug::OpStr((SkPathOp) op)); in testOpCubicsMain()
61 state.outputProgress(pathStr.c_str(), (SkPathOp) op); in testOpCubicsMain()
65 if (!testPathOp(state.fReporter, pathA, pathB, (SkPathOp) op, testName.c_str())) { in testOpCubicsMain()
DPathOpsBuilderTest.cpp343 builder.add(path0, SkPathOp::kUnion_SkPathOp); in DEF_TEST()
344 builder.add(path1, SkPathOp::kUnion_SkPathOp); in DEF_TEST()
360 builder.add(path0, SkPathOp::kUnion_SkPathOp); in DEF_TEST()
361 builder.add(path1, SkPathOp::kUnion_SkPathOp); in DEF_TEST()
DPathOpsInverseTest.cpp30 testPathOp(reporter, one, two, (SkPathOp) op, testName.c_str()); in DEF_TEST()
DPathOpsFuzz763Test.cpp65 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in fuzz763_3084()
120 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in fuzz763_1823()
213 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in fuzz763_378()
236 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in fuzz763_378b()
257 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in fuzz763_378c()
275 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in fuzz763_378d()
369 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in fuzz763_558()
457 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in fuzz763_378a()
498 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in fuzz763_378a_1()
588 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); in fuzz763_8712()
[all …]
/third_party/skia/include/pathops/
DSkPathOps.h22 enum SkPathOp { enum
46 bool SK_API Op(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result);
94 void add(const SkPath& path, SkPathOp _operator);
106 SkTDArray<SkPathOp> fOps;
/third_party/skia/src/effects/
DSkOpPathEffect.cpp16 SkPathOp op) { in Make()
20 SkOpPE::SkOpPE(sk_sp<SkPathEffect> one, sk_sp<SkPathEffect> two, SkPathOp op) in SkOpPE()
59 case SkPathOp::kIntersect_SkPathOp: in computeFastBounds()
64 case SkPathOp::kDifference_SkPathOp: in computeFastBounds()
67 case SkPathOp::kReverseDifference_SkPathOp: in computeFastBounds()
71 case SkPathOp::kXOR_SkPathOp: in computeFastBounds()
73 case SkPathOp::kUnion_SkPathOp: in computeFastBounds()
90 SkPathOp op = buffer.read32LE(kReverseDifference_SkPathOp); in CreateProc()
DSkOpPE.h16 SkOpPE(sk_sp<SkPathEffect> one, sk_sp<SkPathEffect> two, SkPathOp op);
31 SkPathOp fOp;
/third_party/skia/fuzz/
DFuzzPathop.cpp32 SkPathOp op; in DEF_FUZZ()
33 fuzz->nextRange(&op, 0, SkPathOp::kReverseDifference_SkPathOp); in DEF_FUZZ()
69 SkPathOp op; in DEF_FUZZ()
70 fuzz->nextRange(&op, 0, SkPathOp::kReverseDifference_SkPathOp); in DEF_FUZZ()
118 const int kLastOp = SkPathOp::kReverseDifference_SkPathOp;
197 builder.add(path, static_cast<SkPathOp>(op % (kLastOp + 1))); in DEF_FUZZ()
/third_party/skia/src/pathops/
DSkPathOpsDebug.h343 static const char* OpStr(SkPathOp );
350 static void ShowPath(const SkPath& one, const SkPath& two, SkPathOp op, const char* name);
402 void DumpOp(const SkPath& one, const SkPath& two, SkPathOp op,
404 void DumpOp(FILE* file, const SkPath& one, const SkPath& two, SkPathOp op,
408 void ReportOpFail(const SkPath& one, const SkPath& two, SkPathOp op);
410 void VerifyOp(const SkPath& one, const SkPath& two, SkPathOp op,
430 void DumpSegments(const SkOpContour& , const char* prefix = "seg", SkPathOp op = (SkPathOp) -1);
DSkPathOpsOp.cpp109 static bool bridgeOp(SkOpContourHead* contourList, const SkPathOp op, in bridgeOp()
207 static const SkPathOp gOpInverse[kReverseDifference_SkPathOp + 1][2][2] = {
239 bool OpDebug(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result in OpDebug()
370 bool Op(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result) { in Op()
DSkPathOpsCommon.h26 bool OpDebug(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result
DSkOpSegment.h37 SkPathOp op);
38 bool activeOp(int xorMiMask, int xorSuMask, SkOpSpanBase* start, SkOpSpanBase* end, SkPathOp op,
216 SkPathOp op, int xorMiMask, int xorSuMask);
/third_party/skia/modules/pathkit/
Dpathkit_wasm_bindings.cpp237 bool EMSCRIPTEN_KEEPALIVE ApplyPathOp(SkPath& pathOne, const SkPath& pathTwo, SkPathOp op) { in ApplyPathOp()
241 SkPathOrNull EMSCRIPTEN_KEEPALIVE MakeFromOp(const SkPath& pathOne, const SkPath& pathTwo, SkPathOp in MakeFromOp()
547 enum_<SkPathOp>("PathOp") in EMSCRIPTEN_BINDINGS()
548 .value("DIFFERENCE", SkPathOp::kDifference_SkPathOp) in EMSCRIPTEN_BINDINGS()
549 .value("INTERSECT", SkPathOp::kIntersect_SkPathOp) in EMSCRIPTEN_BINDINGS()
550 .value("UNION", SkPathOp::kUnion_SkPathOp) in EMSCRIPTEN_BINDINGS()
551 .value("XOR", SkPathOp::kXOR_SkPathOp) in EMSCRIPTEN_BINDINGS()
552 .value("REVERSE_DIFFERENCE", SkPathOp::kReverseDifference_SkPathOp); in EMSCRIPTEN_BINDINGS()
/third_party/skia/samplecode/
DSamplePatch.cpp435 fPE[1] = SkMergePathEffect::Make(p0, p1, SkPathOp::kDifference_SkPathOp); in ManyStrokesView()
437 fPE[2] = SkMergePathEffect::Make(nullptr, p1, SkPathOp::kDifference_SkPathOp); in ManyStrokesView()
438 fPE[3] = SkMergePathEffect::Make(nullptr, p1, SkPathOp::kUnion_SkPathOp); in ManyStrokesView()
439 fPE[4] = SkMergePathEffect::Make(p0, nullptr, SkPathOp::kDifference_SkPathOp); in ManyStrokesView()
440 fPE[5] = SkMergePathEffect::Make(p0, nullptr, SkPathOp::kIntersect_SkPathOp); in ManyStrokesView()
/third_party/skia/docs/examples/
DPaint_getTextPath.cpp13 Op(path, path2, SkPathOp::kDifference_SkPathOp, &path);
DChromeMDRefreshTabs.cpp68 Op(left_path, right_path, SkPathOp::kIntersect_SkPathOp, &complete_path); in GetInteriorPath()
/third_party/skia/include/effects/
DSkOpPathEffect.h24 static sk_sp<SkPathEffect> Make(sk_sp<SkPathEffect> one, sk_sp<SkPathEffect> two, SkPathOp op);
/third_party/skia/bench/
DPathOpsBench.cpp19 SkPathOp fOp;
22 PathOpsBench(const char suffix[], SkPathOp op) : fOp(op) { in PathOpsBench()
/third_party/skia/src/utils/
DSkClipStackUtils.cpp33 Op(*path, operand, (SkPathOp)elementOp, path); in SkClipStack_AsPath()

12