Home
last modified time | relevance | path

Searched refs:GrPathUtils (Results 1 - 16 of 16) sorted by relevance

/third_party/skia/tests/
H A DGrPathUtilsTest.cpp10 #include "src/gpu/geometry/GrPathUtils.h"
27 int convex180N = GrPathUtils::findCubicConvex180Chops(p, convex180T, &areCusps); in check_cubic_convex_180()
38 int convex180N = GrPathUtils::findCubicConvex180Chops(p, convex180T, &areCusps); in check_cubic_convex_180()
92 REPORTER_ASSERT(r, GrPathUtils::findCubicConvex180Chops(quad, T, &areCusps) == 0);
96 REPORTER_ASSERT(r, GrPathUtils::findCubicConvex180Chops(cusp, T, &areCusps) == 1);
113 REPORTER_ASSERT(r, GrPathUtils::findCubicConvex180Chops(cusp, T, &areCusps) == 2);
119 REPORTER_ASSERT(r, GrPathUtils::findCubicConvex180Chops(cusp, T, &areCusps) == 1);
126 GrPathUtils::writeLineAsCubic({0,0}, {3,6}, &cubicWriter); in DEF_TEST()
135 GrPathUtils::convertQuadToCubic(quad, cubic); in DEF_TEST()
/third_party/skia/src/gpu/ops/
H A DDefaultPathRenderer.cpp27 #include "src/gpu/geometry/GrPathUtils.h"
106 if (!this->ensureSpace(GrPathUtils::kMaxPointsPerCurve, in addQuad()
107 GrPathUtils::kMaxPointsPerCurve * this->indexScale(), in addQuad()
114 uint16_t numPts = (uint16_t)GrPathUtils::generateQuadraticPoints( in addQuad()
116 GrPathUtils::quadraticPointCount(pts, srcSpaceTol)); in addQuad()
134 if (!this->ensureSpace(GrPathUtils::kMaxPointsPerCurve, in addCubic()
135 GrPathUtils::kMaxPointsPerCurve * this->indexScale(), in addCubic()
142 uint16_t numPts = (uint16_t) GrPathUtils::generateCubicPoints( in addCubic()
144 GrPathUtils::cubicPointCount(pts, srcSpaceTol)); in addCubic()
235 static const int kMinVerticesPerChunk = GrPathUtils in allocNewBuffers()
[all...]
H A DTriangulatingPathRenderer.cpp26 #include "src/gpu/geometry/GrPathUtils.h"
286 SkScalar tol = GrPathUtils::scaleToleranceToSrc(GrPathUtils::kDefaultTolerance, in createNonAAMesh()
354 SkScalar tol = GrPathUtils::kDefaultTolerance; in createAAMesh()
445 SkScalar tol = GrPathUtils::scaleToleranceToSrc(GrPathUtils::kDefaultTolerance,
H A DAAHairLinePathRenderer.cpp29 #include "src/gpu/geometry/GrPathUtils.h"
189 static const SkScalar gDegenerateToLineTol = GrPathUtils::kDefaultTolerance; in is_degen_quad_or_conic()
428 GrPathUtils::scaleToleranceToSrc(SK_Scalar1, m, path.getBounds()); in gather_lines_and_quads()
429 GrPathUtils::convertCubicToQuads(pathPts, tolScale, &q); in gather_lines_and_quads()
431 GrPathUtils::convertCubicToQuads(devPts, SK_Scalar1, &q); in gather_lines_and_quads()
525 GrPathUtils::QuadUVMatrix DevToUV(qpts); in set_uv_quad()
620 // k, l, m are calculated in function GrPathUtils::getConicKLM
626 GrPathUtils::getConicKLM(p, weight, &klm); in set_conic_coeffs()
H A DAAConvexPathRenderer.cpp23 #include "src/gpu/geometry/GrPathUtils.h"
270 GrPathUtils::convertCubicToQuadsConstrainToTangents(pts, SK_Scalar1, dir, &quads); in add_cubic_segments()
476 GrPathUtils::QuadUVMatrix toUV(qpts); in create_vertices()
/third_party/skia/fuzz/
H A DFuzzTriangulation.cpp12 #include "src/gpu/geometry/GrPathUtils.h"
20 SkScalar tol = GrPathUtils::scaleToleranceToSrc(GrPathUtils::kDefaultTolerance, in DEF_FUZZ()
/third_party/skia/src/gpu/geometry/
H A DGrPathUtils.cpp8 #include "src/gpu/geometry/GrPathUtils.h"
30 static_assert((1 << kMaxChopsPerCurve) == GrPathUtils::kMaxPointsPerCurve); in max_bezier_vertices()
34 SkScalar GrPathUtils::scaleToleranceToSrc(SkScalar devTol, in scaleToleranceToSrc()
66 uint32_t GrPathUtils::quadraticPointCount(const SkPoint points[], SkScalar tol) { in quadraticPointCount()
71 uint32_t GrPathUtils::generateQuadraticPoints(const SkPoint& p0, in generateQuadraticPoints()
96 uint32_t GrPathUtils::cubicPointCount(const SkPoint points[], SkScalar tol) { in cubicPointCount()
101 uint32_t GrPathUtils::generateCubicPoints(const SkPoint& p0, in generateCubicPoints()
131 void GrPathUtils::QuadUVMatrix::set(const SkPoint qPts[3]) { in set()
246 void GrPathUtils::getConicKLM(const SkPoint p[3], const SkScalar weight, SkMatrix* out) { in getConicKLM()
512 void GrPathUtils
[all...]
H A DGrPathUtils.h23 namespace GrPathUtils { namespace
183 } // namespace GrPathUtils
H A DGrAAConvexTessellator.cpp15 #include "src/gpu/geometry/GrPathUtils.h"
955 int maxCount = GrPathUtils::quadraticPointCount(pts, kQuadTolerance);
958 int count = GrPathUtils::generateQuadraticPoints(pts[0], pts[1], pts[2],
976 int maxCount = GrPathUtils::cubicPointCount(pts, kCubicTolerance);
979 int count = GrPathUtils::generateCubicPoints(pts[0], pts[1], pts[2], pts[3],
H A DGrTriangulator.cpp12 #include "src/gpu/geometry/GrPathUtils.h"
486 while (nPoints < GrPathUtils::kMaxPointsPerCurve) { in appendQuadraticToContour()
583 int pointsLeft = GrPathUtils::cubicPointCount(pts, tolerance); in pathToContours()
/third_party/skia/gm/
H A Dbeziereffects.cpp44 #include "src/gpu/geometry/GrPathUtils.h"
290 GrPathUtils::getConicKLM(controlPts, weights[row], &klm);
366 const GrPathUtils::QuadUVMatrix& devToUV) { in Make()
374 const GrPathUtils::QuadUVMatrix& devToUV) in BezierQuadTestOp()
406 GrPathUtils::QuadUVMatrix fDevToUV;
500 GrPathUtils::QuadUVMatrix DevToUV(pts);
/third_party/skia/src/gpu/tessellate/
H A DStrokeFixedCountTessellator.cpp13 #include "src/gpu/geometry/GrPathUtils.h"
81 GrPathUtils::convertQuadToCubic(p, cubic); in quadraticTo()
312 if (GrPathUtils::conicHasCusp(p)) { in prepare()
324 if (GrPathUtils::conicHasCusp(p)) { in prepare()
340 numChops = GrPathUtils::findCubicConvex180Chops(p, T, &areCusps); in prepare()
H A DStrokeHardwareTessellator.cpp13 #include "src/gpu/geometry/GrPathUtils.h"
185 int numChops = GrPathUtils::findCubicConvex180Chops(p, chopT, &areCusps); in writeCubicConvex180PatchesTo()
370 GrPathUtils::convertQuadToCubic(p, asPatch); in internalConicPatchesTo()
670 // See GrPathUtils::findCubicConvex180Chops() for the math. in cubic_has_cusp()
787 if (GrPathUtils::conicHasCusp(p)) { in prepare()
807 GrPathUtils::convertQuadToCubic(p, scratchPts); in prepare()
822 if (GrPathUtils::conicHasCusp(p)) { in prepare()
/third_party/skia/bench/
H A DGrPathUtilsBench.cpp9 #include "src/gpu/geometry/GrPathUtils.h"
25 int count = GrPathUtils::findCubicConvex180Chops(fPts.data(), T, &areCusps);
/third_party/skia/src/utils/
H A DSkShadowTessellator.cpp20 #include "src/gpu/geometry/GrPathUtils.h"
778 int maxCount = GrPathUtils::quadraticPointCount(pts, kQuadTolerance); in handleQuad()
781 int count = GrPathUtils::generateQuadraticPoints(pts[0], pts[1], pts[2], in handleQuad()
803 int maxCount = GrPathUtils::cubicPointCount(pts, kCubicTolerance); in handleCubic()
806 int count = GrPathUtils::generateCubicPoints(pts[0], pts[1], pts[2], pts[3], in handleCubic()
/third_party/skia/src/gpu/
H A DGrDistanceFieldGenFromVector.cpp18 #include "src/gpu/geometry/GrPathUtils.h"
382 GrPathUtils::convertCubicToQuads(pts, SK_Scalar1, &quads); in add_cubic()

Completed in 20 milliseconds