Lines Matching refs:simple
12 static bool bridgeWinding(SkTArray<SkOpContour*, true>& contourList, SkPathWriter* simple) {
39 if (simple->isEmpty()) {
40 simple->init();
50 if (!unsortable && simple->hasMove()
52 && !simple->isClosed()) {
53 current->addCurveTo(index, endIndex, simple, true);
54 SkASSERT(simple->isClosed());
63 current->addCurveTo(index, endIndex, simple, true);
67 } while (!simple->isClosed() && (!unsortable
69 if (current->activeWinding(index, endIndex) && !simple->isClosed()) {
70 SkASSERT(unsortable || simple->isEmpty());
73 current->addCurveTo(index, endIndex, simple, true);
77 simple->close();
93 return simple->someAssemblyRequired();
97 static bool bridgeXor(SkTArray<SkOpContour*, true>& contourList, SkPathWriter* simple) {
114 if (!unsortable && simple->hasMove()
116 && !simple->isClosed()) {
117 current->addCurveTo(start, end, simple, true);
118 SkASSERT(simple->isClosed());
127 current->addCurveTo(start, end, simple, true);
131 } while (!simple->isClosed() && (!unsortable || !current->done(SkMin32(start, end))));
132 if (!simple->isClosed()) {
136 current->addCurveTo(start, end, simple, true);
141 simple->close();
194 SkPathWriter simple(*result);
195 if (builder.xorMask() == kWinding_PathOpsMask ? bridgeWinding(contourList, &simple)
196 : !bridgeXor(contourList, &simple))
201 Assemble(simple, &assembled);