Home
last modified time | relevance | path

Searched refs:contour (Results 1 – 25 of 37) sorted by relevance

12

/external/skia/src/pathops/
DSkPathOpsCommon.cpp89 SkOpContour* contour = contourHead; in FindUndone() local
91 if (contour->done()) { in FindUndone()
94 SkOpSpan* result = contour->undoneSpan(); in FindUndone()
98 } while ((contour = contour->next())); in FindUndone()
175 SkOpContour* contour = *contourList; in SortContourList() local
177 if (contour->count()) { in SortContourList()
178 contour->setOppXor(contour->operand() ? evenOdd : oppEvenOdd); in SortContourList()
179 *list.append() = contour; in SortContourList()
181 } while ((contour = contour->next())); in SortContourList()
189 contour = list[0]; in SortContourList()
[all …]
DSkOpEdgeBuilder.cpp54 SkOpContour* contour = fContourBuilder.contour(); in finish() local
55 if (contour && !contour->count()) { in finish()
56 fContoursHead->remove(contour); in finish()
181 SkOpContour* contour = fContourBuilder.contour(); in walk() local
189 if (contour && contour->count()) { in walk()
196 if (!contour) { in walk()
197 fContourBuilder.setContour(contour = fContoursHead->appendContour()); in walk()
199 contour->init(fGlobalState, fOperand, in walk()
336 SkASSERT(contour); in walk()
340 contour = nullptr; in walk()
[all …]
DSkOpContour.h321 void setNext(SkOpContour* contour) { in setNext() argument
323 fNext = contour; in setNext()
394 SkOpContour* contour = this->globalState()->allocator()->make<SkOpContour>(); in appendContour() local
395 contour->setNext(nullptr); in appendContour()
401 prev->setNext(contour); in appendContour()
402 return contour; in appendContour()
415 void remove(SkOpContour* contour) { in remove() argument
416 if (contour == this) { in remove()
420 SkASSERT(contour->next() == nullptr); in remove()
423 while ((next = prev->next()) != contour) { in remove()
[all …]
DSkOpEdgeBuilder.h38 SkOpContour* contour = fContourBuilder.contour(); in complete() local
39 if (contour && contour->count()) { in complete()
40 contour->complete(); in complete()
DSkIntersectionHelper.h42 SkOpContour* contour() const { in contour() function
43 return fSegment->contour(); in contour()
46 void init(SkOpContour* contour) { in init() argument
47 fSegment = contour->first(); in init()
DSkPathOpsWinding.cpp250 SkOpContour* contour = contourHead; in sortableTop() local
252 if (!contour->count()) { in sortableTop()
255 contour->rayCheck(hitBase, dir, &hitHead, &allocator); in sortableTop()
256 } while ((contour = contour->next())); in sortableTop()
353 hitSegment->contour()->setCcw(ccw); in sortableTop()
409 SkOpContour* contour = contourHead; in FindSortableTop() local
411 if (contour->done()) { in FindSortableTop()
414 SkOpSpan* result = contour->findSortableTop(contourHead); in FindSortableTop()
418 } while ((contour = contour->next())); in FindSortableTop()
DSkPathOpsSimplify.cpp150 SkOpContour contour; in SimplifyDebug() local
151 SkOpContourHead* contourList = static_cast<SkOpContourHead*>(&contour); in SimplifyDebug()
180 contour.dumpSegments(); in SimplifyDebug()
205 contour.dumpSegments("aligned"); in SimplifyDebug()
DSkOpSpan.cpp78 SkOpContour* SkOpPtT::contour() const { in contour() function in SkOpPtT
79 return segment()->contour(); in contour()
96 return contour()->globalState(); in globalState()
220 SkOpContour* SkOpSpanBase::contour() const { in contour() function in SkOpSpanBase
221 return segment()->contour(); in contour()
225 return contour()->globalState(); in globalState()
DSkPathOpsTightBounds.cpp51 SkOpContour contour; in TightBounds() local
52 SkOpContourHead* contourList = static_cast<SkOpContourHead*>(&contour); in TightBounds()
DSkPathOpsDebug.cpp257 const SkOpContour* contour = contourList; in missing_coincidence() local
260 /* result |= */ contour->debugMissingCoincidence(glitches); in missing_coincidence()
261 } while ((contour = contour->next())); in missing_coincidence()
266 const SkOpContour* contour = contourList; in move_multiples() local
268 if (contour->debugMoveMultiples(glitches), false) { in move_multiples()
271 } while ((contour = contour->next())); in move_multiples()
276 const SkOpContour* contour = contourList; in move_nearby() local
278 contour->debugMoveNearby(glitches); in move_nearby()
279 } while ((contour = contour->next())); in move_nearby()
332 SkOpContour* contour = contourList; in ShowActiveSpans() local
[all …]
DSkPathWriter.cpp303 const SkPath& contour = fPartials[rIndex]; in assemble() local
305 fPathPtr->addPath(contour, in assemble()
309 fPathPtr->reversePathTo(contour); in assemble()
DSkOpSegment.h119 SkOpContour* contour() const { in contour() function
346 void setContour(SkOpContour* contour) { in setContour() argument
347 fContour = contour; in setContour()
DSkPathOpsOp.cpp221 SkOpContour contour; in OpDebug() local
222 SkOpContourHead* contourList = static_cast<SkOpContourHead*>(&contour); in OpDebug()
DSkOpSpan.h48 SkOpContour* contour() const;
213 SkOpContour* contour() const;
/external/skia/tests/
DPathOpsDebug.cpp231 const SkOpAngle* SkPathOpsDebug::DebugContourAngle(SkOpContour* contour, int id) { in DebugContourAngle() argument
232 return contour->debugAngle(id); in DebugContourAngle()
235 SkOpContour* SkPathOpsDebug::DebugContourContour(SkOpContour* contour, int id) { in DebugContourContour() argument
236 return contour->debugContour(id); in DebugContourContour()
239 const SkOpPtT* SkPathOpsDebug::DebugContourPtT(SkOpContour* contour, int id) { in DebugContourPtT() argument
240 return contour->debugPtT(id); in DebugContourPtT()
243 const SkOpSegment* SkPathOpsDebug::DebugContourSegment(SkOpContour* contour, int id) { in DebugContourSegment() argument
244 return contour->debugSegment(id); in DebugContourSegment()
247 const SkOpSpanBase* SkPathOpsDebug::DebugContourSpan(SkOpContour* contour, int id) { in DebugContourSpan() argument
248 return contour->debugSpan(id); in DebugContourSpan()
[all …]
DPathOpsAngleTest.cpp243 SkOpContourHead contour; in DEF_TEST() local
244 SkOpGlobalState state(&contour, &allocator SkDEBUGPARAMS(false) SkDEBUGPARAMS(nullptr)); in DEF_TEST()
245 contour.init(&state, false, false); in DEF_TEST()
253 contour.addLine(data.fShortPts); in DEF_TEST()
256 contour.addQuad(data.fShortPts); in DEF_TEST()
259 contour.addCubic(data.fShortPts); in DEF_TEST()
263 SkOpSegment* first = contour.first(); in DEF_TEST()
435 SkOpContourHead contour; in DEF_TEST() local
436 SkOpGlobalState state(&contour, &allocator SkDEBUGPARAMS(false) SkDEBUGPARAMS(nullptr)); in DEF_TEST()
437 contour.init(&state, false, false); in DEF_TEST()
[all …]
DPathOpsAngleIdeas.cpp414 static void makeSegment(SkOpContour* contour, const SkDQuad& quad, SkPoint shortQuad[3]) { in makeSegment() argument
418 contour->addQuad(shortQuad); in makeSegment()
425 SkOpContourHead contour; in testQuadAngles() local
426 SkOpGlobalState state(&contour, allocator SkDEBUGPARAMS(false) SkDEBUGPARAMS(nullptr)); in testQuadAngles()
427 contour.init(&state, false, false); in testQuadAngles()
428 makeSegment(&contour, quad1, shortQuads[0]); in testQuadAngles()
429 makeSegment(&contour, quad1, shortQuads[1]); in testQuadAngles()
430 SkOpSegment* seg1 = contour.first(); in testQuadAngles()
/external/sfntly/cpp/src/sfntly/table/truetype/
Dglyph_table.cc357 int32_t GlyphTable::SimpleGlyph::NumberOfPoints(int32_t contour) { in NumberOfPoints() argument
359 if (contour >= NumberOfContours()) { in NumberOfPoints()
362 return contour_index_[contour + 1] - contour_index_[contour]; in NumberOfPoints()
365 int32_t GlyphTable::SimpleGlyph::XCoordinate(int32_t contour, int32_t point) { in XCoordinate() argument
367 return x_coordinates_[contour_index_[contour] + point]; in XCoordinate()
370 int32_t GlyphTable::SimpleGlyph::YCoordinate(int32_t contour, int32_t point) { in YCoordinate() argument
372 return y_coordinates_[contour_index_[contour] + point]; in YCoordinate()
375 bool GlyphTable::SimpleGlyph::OnCurve(int32_t contour, int32_t point) { in OnCurve() argument
377 return on_curve_[contour_index_[contour] + point]; in OnCurve()
411 for (uint32_t contour = 0; contour < contour_index_.size() - 1; ++contour) { in Initialize() local
[all …]
Dglyph_table.h202 int32_t NumberOfPoints(int32_t contour);
203 int32_t XCoordinate(int32_t contour, int32_t point);
204 int32_t YCoordinate(int32_t contour, int32_t point);
205 bool OnCurve(int32_t contour, int32_t point);
210 int32_t ContourEndPoint(int32_t contour);
272 int32_t Flags(int32_t contour);
274 int32_t GlyphIndex(int32_t contour);
275 int32_t Argument1(int32_t contour);
276 int32_t Argument2(int32_t contour);
277 int32_t TransformationSize(int32_t contour);
[all …]
/external/freetype/src/autofit/
Dafhints.c309 AF_Point* contour = hints->contours; in af_glyph_hints_dump_points() local
310 AF_Point* climit = contour + hints->num_contours; in af_glyph_hints_dump_points()
332 if ( contour < climit && *contour == point ) in af_glyph_hints_dump_points()
335 contour++; in af_glyph_hints_dump_points()
893 AF_Point* contour = hints->contours; in af_glyph_hints_reload() local
894 AF_Point* contour_limit = contour + hints->num_contours; in af_glyph_hints_reload()
899 for ( ; contour < contour_limit; contour++, end++ ) in af_glyph_hints_reload()
901 contour[0] = points + idx; in af_glyph_hints_reload()
921 AF_Point* contour; in af_glyph_hints_reload() local
925 for ( contour = hints->contours; contour < contour_limit; contour++ ) in af_glyph_hints_reload()
[all …]
/external/fonttools/Lib/fontTools/ttLib/
D__init__.py730 contour = coordinates[start:end].tolist()
737 contour.append(None)
738 pen.qCurveTo(*contour)
744 contour = contour[firstOnCurve:] + contour[:firstOnCurve]
746 pen.moveTo(contour[-1])
747 while contour:
750 pen.lineTo(contour[0])
752 pen.qCurveTo(*contour[:nextOnCurve])
753 contour = contour[nextOnCurve:]
/external/skia/src/gpu/
DGrTessellator.cpp621 void append_point_to_contour(const SkPoint& p, VertexList* contour, SkArenaAlloc& alloc) { in append_point_to_contour() argument
627 contour->append(v); in append_point_to_contour()
641 void append_quadratic_to_contour(const SkPoint pts[3], SkScalar toleranceSqd, VertexList* contour, in append_quadratic_to_contour() argument
660 append_point_to_contour(to_point(quad.eval(j * u)), contour, alloc); in append_quadratic_to_contour()
669 VertexList* contour, in generate_cubic_points() argument
676 append_point_to_contour(p3, contour, alloc); in generate_cubic_points()
690 generate_cubic_points(p0, q[0], r[0], s, tolSqd, contour, pointsLeft, alloc); in generate_cubic_points()
691 generate_cubic_points(s, r[1], q[2], p3, tolSqd, contour, pointsLeft, alloc); in generate_cubic_points()
702 VertexList* contour = contours; in path_to_contours() local
710 contour++; in path_to_contours()
[all …]
/external/pdfium/third_party/freetype/src/pshinter/
Dpshalgo.c1180 PSH_Contour contour = glyph->contours; in psh_glyph_init() local
1192 contour->start = points + first; in psh_glyph_init()
1193 contour->count = count; in psh_glyph_init()
1200 point->contour = contour; in psh_glyph_init()
1207 point->contour = contour; in psh_glyph_init()
1212 contour++; in psh_glyph_init()
1930 PSH_Contour contour = glyph->contours; in psh_glyph_interpolate_other_points() local
1934 for ( ; num_contours > 0; num_contours--, contour++ ) in psh_glyph_interpolate_other_points()
1936 PSH_Point start = contour->start; in psh_glyph_interpolate_other_points()
1942 next = start + contour->count; in psh_glyph_interpolate_other_points()
/external/freetype/src/pshinter/
Dpshalgo.c1180 PSH_Contour contour = glyph->contours; in psh_glyph_init() local
1192 contour->start = points + first; in psh_glyph_init()
1193 contour->count = count; in psh_glyph_init()
1200 point->contour = contour; in psh_glyph_init()
1207 point->contour = contour; in psh_glyph_init()
1212 contour++; in psh_glyph_init()
1930 PSH_Contour contour = glyph->contours; in psh_glyph_interpolate_other_points() local
1934 for ( ; num_contours > 0; num_contours--, contour++ ) in psh_glyph_interpolate_other_points()
1936 PSH_Point start = contour->start; in psh_glyph_interpolate_other_points()
1942 next = start + contour->count; in psh_glyph_interpolate_other_points()
/external/pdfium/third_party/freetype/src/truetype/
Dttgxvar.c1660 FT_Short contour; in tt_handle_deltas() local
1669 contour = 0; in tt_handle_deltas()
1674 end_point = outline->contours[contour]; in tt_handle_deltas()
1733 contour++; in tt_handle_deltas()
1735 } while ( contour < outline->n_contours ); in tt_handle_deltas()

12