Home
last modified time | relevance | path

Searched refs:contour (Results 1 - 25 of 35) sorted by relevance

12

/third_party/skia/src/pathops/
H A DSkPathOpsCommon.cpp69 SkOpContour* contour = contourHead; in FindUndone() local
71 if (contour->done()) { in FindUndone()
74 SkOpSpan* result = contour->undoneSpan(); in FindUndone()
78 } while ((contour = contour->next())); in FindUndone()
156 SkOpContour* contour = *contourList; in SortContourList() local
158 if (contour->count()) { in SortContourList()
159 contour->setOppXor(contour->operand() ? evenOdd : oppEvenOdd); in SortContourList()
160 *list.append() = contour; in SortContourList()
185 SkOpContour* contour = contourList; DEBUG_COIN_DECLARE_PARAMS() local
193 SkOpContour* contour = contourList; DEBUG_COIN_DECLARE_PARAMS() local
203 SkOpContour* contour = contourList; DEBUG_COIN_DECLARE_PARAMS() local
214 SkOpContour* contour = contourList; DEBUG_COIN_DECLARE_PARAMS() local
224 SkOpContour* contour = contourList; sort_angles() local
[all...]
H A DSkPathOpsAsWinding.cpp97 return winding; // note winding indicates containership, not contour direction in contains_edge()
204 int nextEdge(Contour& contour, Edge edge) {
212 if (++verbCount < contour.fVerbStart) {
215 if (verbCount >= contour.fVerbEnd) {
232 winding += contains_edge(pts, verb, conic_weight(iter, verb), contour.fMinXY);
238 if (minXY.fX > contour.fMinXY.fX) {
241 if (minXY.fX == contour.fMinXY.fX) {
242 if (minXY.fY != contour.fMinXY.fY) {
245 if (direction == contour.fDirection) {
254 contour
[all...]
H A DSkOpContour.h320 void setNext(SkOpContour* contour) { in setNext() argument
321 // SkASSERT(!fNext == !!contour); in setNext()
322 fNext = contour; in setNext()
383 bool fReverse; // true if contour should be reverse written to path (used only by fix winding)
393 SkOpContour* contour = this->globalState()->allocator()->make<SkOpContour>(); in appendContour() local
394 contour->setNext(nullptr); in appendContour()
400 prev->setNext(contour); in appendContour()
401 return contour; in appendContour()
414 void remove(SkOpContour* contour) { in remove() argument
415 if (contour in remove()
434 SkOpContourBuilder(SkOpContour* contour) SkOpContourBuilder() argument
445 SkOpContour* contour() { return fContour; } contour() function in SkOpContourBuilder
446 setContour(SkOpContour* contour) setContour() argument
[all...]
H A DSkOpEdgeBuilder.cpp58 SkOpContour* contour = fContourBuilder.contour(); in finish() local
59 if (contour && !contour->count()) { in finish()
60 fContoursHead->remove(contour); in finish()
175 SkOpContour* contour = fContourBuilder.contour(); in walk() local
184 if (contour && contour->count()) { in walk()
191 if (!contour) { in walk()
[all...]
H A DSkOpEdgeBuilder.h38 SkOpContour* contour = fContourBuilder.contour(); in complete() local
39 if (contour && contour->count()) { in complete()
40 contour->complete(); in complete()
H A DSkIntersectionHelper.h42 SkOpContour* contour() const { in contour() function in SkIntersectionHelper
43 return fSegment->contour(); in contour()
46 void init(SkOpContour* contour) { in init() argument
47 fSegment = contour->first(); in init()
H A DSkPathOpsWinding.cpp253 SkOpContour* contour = contourHead; in sortableTop() local
255 if (!contour->count()) { in sortableTop()
258 contour->rayCheck(hitBase, dir, &hitHead, &allocator); in sortableTop()
259 } while ((contour = contour->next())); in sortableTop()
357 hitSegment->contour()->setCcw(ccw); in sortableTop()
414 SkOpContour* contour = contourHead; in FindSortableTop() local
416 if (contour->done()) { in FindSortableTop()
419 SkOpSpan* result = contour->findSortableTop(contourHead); in FindSortableTop()
423 } while ((contour in FindSortableTop()
[all...]
H A DSkPathOpsSimplify.cpp154 SkOpContour contour; in SimplifyDebug() local
155 SkOpContourHead* contourList = static_cast<SkOpContourHead*>(&contour); in SimplifyDebug()
175 contour.dumpSegments(); in SimplifyDebug()
200 contour.dumpSegments("aligned"); in SimplifyDebug()
H A DSkOpSpan.cpp77 SkOpContour* SkOpPtT::contour() const { in contour() function in SkOpPtT
78 return segment()->contour(); in contour()
95 return contour()->globalState(); in globalState()
229 SkOpContour* SkOpSpanBase::contour() const { in contour() function in SkOpSpanBase
230 return segment()->contour(); in contour()
234 return contour()->globalState(); in globalState()
H A DSkPathOpsTightBounds.cpp48 SkOpContour contour; in TightBounds() local
49 SkOpContourHead* contourList = static_cast<SkOpContourHead*>(&contour); in TightBounds()
H A 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 in move_nearby()
332 SkOpContour* contour = contourList; ShowActiveSpans() local
355 const SkOpContour* contour = contourList; CheckHealth() local
[all...]
H A DSkPathWriter.cpp13 // wrap path to keep track of whether the contour is initialized and non-empty
195 check start and end of each contour
199 reassemble contour pieces into new path
218 SkDebugf("%s contour start=(%1.9g,%1.9g) end=(%1.9g,%1.9g)\n", __FUNCTION__, in assemble()
222 // lengthen any partial contour adjacent to a simple segment in assemble()
351 const SkPath& contour = fPartials[rIndex]; in assemble() local
358 next = contour.getPoint(0); in assemble()
360 SkAssertResult(contour.getLastPt(&next)); in assemble()
370 fPathPtr->addPath(contour, in assemble()
374 fPathPtr->reversePathTo(contour); in assemble()
[all...]
/third_party/skia/tests/
H A DPathOpsDebug.cpp239 const SkOpAngle* ContourAngle(SkOpContour* contour, int id) { in ContourAngle() argument
240 return contour->debugAngle(id); in ContourAngle()
243 SkOpContour* ContourContour(SkOpContour* contour, int id) { in ContourContour() argument
244 return contour->debugContour(id); in ContourContour()
247 const SkOpPtT* ContourPtT(SkOpContour* contour, int id) { in ContourPtT() argument
248 return contour->debugPtT(id); in ContourPtT()
251 const SkOpSegment* ContourSegment(SkOpContour* contour, int id) { in ContourSegment() argument
252 return contour->debugSegment(id); in ContourSegment()
255 const SkOpSpanBase* ContourSpan(SkOpContour* contour, int id) { in ContourSpan() argument
256 return contour in ContourSpan()
360 SkOpContour* contour = this->globalState()->contourHead(); dumpContours() local
367 SkOpContour* contour = this->globalState()->contourHead(); dumpContoursAll() local
374 SkOpContour* contour = this->globalState()->contourHead(); dumpContoursAngles() local
381 SkOpContour* contour = this->globalState()->contourHead(); dumpContoursPts() local
388 SkOpContour* contour = this->globalState()->contourHead(); dumpContoursPt() local
395 SkOpContour* contour = this->globalState()->contourHead(); dumpContoursSegment() local
402 SkOpContour* contour = this->globalState()->contourHead(); dumpContoursSpan() local
409 SkOpContour* contour = this->globalState()->contourHead(); dumpContoursSpans() local
1067 const SkOpContour* contour = fContourHead; debugAngle() local
1094 SkOpContour* contour = fContourHead; debugContour() local
1104 const SkOpContour* contour = fContourHead; debugPtT() local
1127 const SkOpContour* contour = fContourHead; debugSegment() local
1141 const SkOpContour* contour = fContourHead; debugSpan() local
1371 Dump(const SkOpContour& contour) Dump() argument
1375 DumpAll(const SkOpContour& contour) DumpAll() argument
1379 DumpAngles(const SkOpContour& contour) DumpAngles() argument
1383 DumpContours(const SkOpContour& contour) DumpContours() argument
1387 DumpContoursAll(const SkOpContour& contour) DumpContoursAll() argument
1391 DumpContoursAngles(const SkOpContour& contour) DumpContoursAngles() argument
1395 DumpContoursPts(const SkOpContour& contour) DumpContoursPts() argument
1399 DumpContoursPt(const SkOpContour& contour, int segmentID) DumpContoursPt() argument
1403 DumpContoursSegment(const SkOpContour& contour, int segmentID) DumpContoursSegment() argument
1407 DumpContoursSpan(const SkOpContour& contour, int segmentID) DumpContoursSpan() argument
1411 DumpContoursSpans(const SkOpContour& contour) DumpContoursSpans() argument
1415 DumpPt(const SkOpContour& contour, int pt) DumpPt() argument
1419 DumpPts(const SkOpContour& contour, const char* prefix) DumpPts() argument
1423 DumpSegment(const SkOpContour& contour, int seg) DumpSegment() argument
1427 DumpSegments(const SkOpContour& contour, const char* prefix, SkPathOp op) DumpSegments() argument
1431 DumpSpan(const SkOpContour& contour, int span) DumpSpan() argument
[all...]
H A DPathOpsAngleTest.cpp242 SkOpContourHead contour;
243 SkOpGlobalState state(&contour, &allocator SkDEBUGPARAMS(false) SkDEBUGPARAMS(nullptr));
244 contour.init(&state, false, false);
252 contour.addLine(data.fShortPts);
255 contour.addQuad(data.fShortPts);
258 contour.addCubic(data.fShortPts);
262 SkOpSegment* first = contour.first();
438 SkOpContourHead contour; in DEF_TEST() local
439 SkOpGlobalState state(&contour, &alloc SkDEBUGPARAMS(false) SkDEBUGPARAMS(nullptr)); in DEF_TEST()
440 contour in DEF_TEST()
504 SkOpContourHead contour; DEF_TEST() local
[all...]
H A DPathOpsAngleIdeas.cpp411 static void makeSegment(SkOpContour* contour, const SkDQuad& quad, SkPoint shortQuad[3]) { in makeSegment() argument
415 contour->addQuad(shortQuad); in makeSegment()
422 SkOpContourHead contour; in testQuadAngles() local
423 SkOpGlobalState state(&contour, allocator SkDEBUGPARAMS(false) SkDEBUGPARAMS(nullptr)); in testQuadAngles()
424 contour.init(&state, false, false); in testQuadAngles()
425 makeSegment(&contour, quad1, shortQuads[0]); in testQuadAngles()
426 makeSegment(&contour, quad1, shortQuads[1]); in testQuadAngles()
427 SkOpSegment* seg1 = contour.first(); in testQuadAngles()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/truetype/
H A DCompositeGlyph.java80 public int flags(int contour) { in flags() argument
81 return this.data.readUShort(this.contourIndex.get(contour)); in flags()
88 public int glyphIndex(int contour) { in glyphIndex() argument
89 return this.data.readUShort(FontData.DataSize.USHORT.size() + this.contourIndex.get(contour)); in glyphIndex()
92 public int argument1(int contour) { in argument1() argument
93 int index = 2 * FontData.DataSize.USHORT.size() + this.contourIndex.get(contour); in argument1()
94 int flags = this.flags(contour); in argument1()
101 public int argument2(int contour) { in argument2() argument
102 int index = 2 * FontData.DataSize.USHORT.size() + this.contourIndex.get(contour); in argument2()
103 int flags = this.flags(contour); in argument2()
110 transformationSize(int contour) transformationSize() argument
122 transformation(int contour) transformation() argument
[all...]
H A DSimpleGlyph.java86 for (int contour = 0; contour < this.contourIndex.length - 1; contour++) { in initialize()
87 contourIndex[contour + 1] = this.contourEndPoint(contour) + 1; in initialize()
181 public int contourEndPoint(int contour) { in contourEndPoint() argument
183 contour * FontData.DataSize.USHORT.size() + Offset.simpleEndPtsOfCountours.offset); in contourEndPoint()
198 public int numberOfPoints(int contour) { in numberOfPoints() argument
200 if (contour >= this.numberOfContours()) { in numberOfPoints()
203 return this.contourIndex[contour in numberOfPoints()
206 xCoordinate(int contour, int point) xCoordinate() argument
211 yCoordinate(int contour, int point) yCoordinate() argument
216 onCurve(int contour, int point) onCurve() argument
[all...]
/third_party/skia/third_party/externals/freetype/src/sdf/
H A Dftsdf.c58 * Each contour comprises of several edges, with three types of edges.
69 * distance' means that if the grid point is filled by any contour
78 * foreach contour in outline:
80 * foreach edge in contour:
249 * Enumeration of all orientation values of a contour. We determine the
250 * orientation by calculating the area covered by a contour. Contrary
284 * Represent an edge of a contour.
306 * as a contour.
329 * Represent a complete contour, which contains a list of edges.
338 * Linked list of all the edges that make the contour
652 SDF_Contour* contour = NULL; sdf_move_to() local
684 SDF_Contour* contour = NULL; sdf_line_to() local
727 SDF_Contour* contour = NULL; sdf_conic_to() local
769 SDF_Contour* contour = NULL; sdf_cubic_to() local
1343 SDF_Contour* contour = contour_list; sdf_shape_dump() local
2936 sdf_contour_get_min_distance( SDF_Contour* contour, FT_26D6_Vec point, SDF_Signed_Distance* out ) sdf_contour_get_min_distance() argument
3504 SDF_Contour* contour; /* temporary variable to iterate */ sdf_generate_with_overlaps() local
[all...]
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/truetype/
H A Dglyph_table.cc388 for (uint32_t contour = 0; contour < contour_index_.size() - 1; ++contour) { in Initialize()
389 contour_index_[contour + 1] = ContourEndPoint(contour) + 1; in Initialize()
482 int32_t GlyphTable::SimpleGlyph::ContourEndPoint(int32_t contour) { in ContourEndPoint() argument
483 return data_->ReadUShort(contour * DataSize::kUSHORT + in ContourEndPoint()
524 int32_t GlyphTable::CompositeGlyph::Flags(int32_t contour) { in Flags() argument
525 if (contour < 0 || static_cast<size_t>(contour) > in Flags()
534 GlyphIndex(int32_t contour) GlyphIndex() argument
[all...]
H A Dglyph_table.h205 int32_t ContourEndPoint(int32_t contour);
267 int32_t Flags(int32_t contour);
269 int32_t GlyphIndex(int32_t contour);
/third_party/skia/third_party/externals/freetype/src/autofit/
H A Dafhints.c420 AF_Point* contour = hints->contours; in af_glyph_hints_dump_points() local
421 AF_Point* climit = contour + hints->num_contours; in af_glyph_hints_dump_points()
449 /* insert extra newline at the beginning of a contour */ in af_glyph_hints_dump_points()
450 if ( contour < climit && *contour == point ) in af_glyph_hints_dump_points()
453 contour++; in af_glyph_hints_dump_points()
1039 AF_Point* contour = hints->contours; in FT_LOCAL_DEF() local
1040 AF_Point* contour_limit = contour + hints->num_contours; in FT_LOCAL_DEF()
1045 for ( ; contour < contour_limit; contour in FT_LOCAL_DEF()
1067 AF_Point* contour; FT_LOCAL_DEF() local
1668 AF_Point* contour = hints->contours; af_glyph_hints_align_weak_points() local
[all...]
/third_party/skia/src/gpu/geometry/
H A DGrTriangulator.cpp455 void GrTriangulator::appendPointToContour(const SkPoint& p, VertexList* contour) const { in appendPointToContour()
461 contour->append(v); in appendPointToContour()
476 VertexList* contour) const { in appendQuadraticToContour()
494 this->appendPointToContour(to_point(quad.eval(j * u)), contour); in appendQuadraticToContour() local
499 const SkPoint& p3, SkScalar tolSqd, VertexList* contour, in generateCubicPoints()
505 this->appendPointToContour(p3, contour); in generateCubicPoints()
519 this->generateCubicPoints(p0, q[0], r[0], s, tolSqd, contour, pointsLeft); in generateCubicPoints()
520 this->generateCubicPoints(s, r[1], q[2], p3, tolSqd, contour, pointsLeft); in generateCubicPoints()
530 VertexList* contour = contours; in pathToContours() local
538 contour in pathToContours()
498 generateCubicPoints(const SkPoint& p0, const SkPoint& p1, const SkPoint& p2, const SkPoint& p3, SkScalar tolSqd, VertexList* contour, int pointsLeft) const generateCubicPoints() argument
[all...]
/third_party/skia/modules/svg/src/
H A DSkSVGText.cpp360 while (sk_sp<SkContourMeasure> contour = cmi.next()) {
361 fLength += contour->length();
362 fContours.push_back(std::move(contour));
368 for (const auto& contour : fContours) { in getMatrixAt()
369 const auto contour_len = contour->length(); in getMatrixAt()
372 return contour->getMatrix(offset, &m) ? m : SkMatrix::I(); in getMatrixAt()
/third_party/skia/modules/particles/src/
H A DSkParticleBinding.cpp35 while (auto contour = iter.next()) { in linearize_path()
36 for (SkScalar x = 0; x < contour->length(); x++) { in linearize_path()
39 SkAssertResult(contour->getPosTan(x, &pos, &tan)); in linearize_path()
/third_party/skia/third_party/externals/freetype/src/pshinter/
H A Dpshalgo.c944 /* compute first segment in contour */ in psh_glyph_compute_inflections()
983 /* now, process all segments in the contour */ in psh_glyph_compute_inflections()
1180 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()
1921 PSH_Contour contour = glyph->contours; psh_glyph_interpolate_other_points() local
[all...]

Completed in 27 milliseconds

12