Home
last modified time | relevance | path

Searched refs:chops (Results 1 - 6 of 6) sorted by relevance

/third_party/skia/src/gpu/tessellate/
H A DStrokeFixedCountTessellator.cpp147 SkPoint chops[5]; in chopQuadraticTo() local
148 SkChopQuadAtHalf(p, chops); in chopQuadraticTo()
149 this->quadraticTo(chops); in chopQuadraticTo()
150 this->quadraticTo(chops + 2); in chopQuadraticTo()
154 SkConic chops[2]; in chopConicTo() local
155 if (!conic.chopAt(.5f, chops)) { in chopConicTo()
158 this->conicTo(chops[0].fPts, chops[0].fW); in chopConicTo()
159 this->conicTo(chops[1].fPts, chops[ in chopConicTo()
163 SkPoint chops[7]; chopCubicConvex180To() local
337 SkPoint chops[10]; prepare() local
[all...]
H A DTessellation.cpp46 SkPoint chops[5]; in quadTo() local
47 SkChopQuadAtHalf(p, chops); in quadTo()
48 this->quadTo(chops); in quadTo()
49 this->quadTo(chops + 2); in quadTo()
62 SkConic chops[2]; in conicTo() local
63 if (!SkConic(p,w).chopAt(.5, chops)) { in conicTo()
67 this->conicTo(chops[0].fPts, chops[0].fW); in conicTo()
68 this->conicTo(chops[1].fPts, chops[ in conicTo()
81 SkPoint chops[7]; cubicTo() local
[all...]
H A DStrokeHardwareTessellator.cpp67 // Subtract 2 because the tessellation shader chops every cubic at two locations, and in PatchWriter()
172 // Recursively chops the given conic and its previous join until the segments fit in
179 // chops the previous join and cubic sections as necessary until the segments fit in
182 SkPoint chops[10]; in writeCubicConvex180PatchesTo() local
190 SkChopCubicAt(p, chops, chopT[0]); in writeCubicConvex180PatchesTo()
193 chops[2] = chops[4] = chops[3]; in writeCubicConvex180PatchesTo()
195 this->internalCubicConvex180PatchesTo(fStrokeJoinType, chops); in writeCubicConvex180PatchesTo()
196 this->internalCubicConvex180PatchesTo(JoinType::kBowtie, chops in writeCubicConvex180PatchesTo()
407 SkPoint chops[5]; internalConicPatchesTo() local
419 SkConic chops[2]; internalConicPatchesTo() local
462 SkPoint chops[7]; internalCubicConvex180PatchesTo() local
[all...]
/third_party/skia/tests/
H A DGrPathUtilsTest.cpp39 SkPoint chops[10]; in check_cubic_convex_180() local
40 SkChopCubicAt(p, chops, convex180T, convex180N); in check_cubic_convex_180()
43 float rads = SkMeasureNonInflectCubicRotation(chops + i*3); in check_cubic_convex_180()
57 SkMeasureNonInflectCubicRotation(chops), SK_ScalarPI)); in check_cubic_convex_180()
59 SkMeasureNonInflectCubicRotation(chops + 3), totalRotation - SK_ScalarPI)); in check_cubic_convex_180()
H A DPathOpsConicIntersectionTest.cpp143 const int chops = 2; in writeDPng() local
144 for (int tIndex = 0; tIndex < chops; ++tIndex) { in writeDPng()
145 SkDConic chopped = dConic.subDivide(tIndex / (double) chops, in writeDPng()
146 (tIndex + 1) / (double) chops); in writeDPng()
H A DGeometryTest.cpp577 SkPoint chops[10]; in test_chop_at_midtangent() local
580 int n = SkChopCubicAtInflections(serp.data(), chops); in test_chop_at_midtangent()
582 test_chop_cubic_at_midtangent(reporter, chops + i*3, SkCubicType::kSerpentine); in test_chop_at_midtangent()
610 int n = SkChopCubicAtInflections(kExactCuspAtInf, chops); in test_chop_at_midtangent()
612 test_chop_cubic_at_midtangent(reporter, chops + i*3, SkCubicType::kCuspAtInfinity); in test_chop_at_midtangent()

Completed in 5 milliseconds