HomeSort by relevance Sort by last modified time
    Searched refs:tol (Results 1 - 7 of 7) sorted by null

  /external/skia/gpu/src/
GrPathUtils.h 31 GrScalar tol);
32 static uint32_t quadraticPointCount(const GrPoint points[], GrScalar tol);
39 static uint32_t cubicPointCount(const GrPoint points[], GrScalar tol);
GrPathUtils.cpp 25 GrScalar tol) {
27 if (d < tol) {
31 // subdivide x = log4(d/tol) times. x subdivisions creates 2^(x)
34 int temp = SkScalarCeil(SkScalarSqrt(SkScalarDiv(d, tol)));
65 GrScalar tol) {
69 if (d < tol) {
72 int temp = SkScalarCeil(SkScalarSqrt(SkScalarDiv(d, tol)));
108 GrScalar tol) {
125 pointCount += quadraticPointCount(pts, tol);
128 pointCount += cubicPointCount(pts, tol);
    [all...]
GrPathRenderer.cpp 200 GrScalar tol = GrPathUtils::gTolerance; local
204 tol /= 10;
206 tol = GrScalarDiv(tol, stretch);
208 GrScalar tolSqd = GrMul(tol, tol);
211 int maxPts = GrPathUtils::worstCasePointCount(path, &subpathCnt, tol);
351 GrPathUtils::quadraticPointCount(pts, tol));
357 GrPathUtils::cubicPointCount(pts, tol));
GrTesselatedPathRenderer.cpp 142 GrScalar tol = GrPathUtils::gTolerance; local
146 tol /= 10;
148 tol = GrScalarDiv(tol, stretch);
150 GrScalar tolSqd = GrMul(tol, tol);
153 int maxPts = GrPathUtils::worstCasePointCount(path, &subpathCnt, tol);
197 GrPathUtils::quadraticPointCount(pts, tol));
203 GrPathUtils::cubicPointCount(pts, tol));
351 int tol = GrPathUtils::gTolerance local
    [all...]
  /external/skia/tests/
ClipCubicTest.cpp 20 float tol) {
22 if (SkScalarAbs(c0[i].fX - c1[i].fX) > SkFloatToScalar(tol) ||
23 SkScalarAbs(c0[i].fY - c1[i].fY) > SkFloatToScalar(tol)
59 const float tol = SkFloatToScalar(1e-4); local
67 0, 0, 2, 3, 1, 10, 4, 12, shouldbe), tol));
75 0, 0, 2, 3, 1, 10, 4, 12, shouldbe), tol));
83 0, 0, 2, 3, 1, 10, 4, 12, shouldbe), tol));
101 shouldbe), tol));
113 shouldbe), tol));
125 shouldbe), tol));
    [all...]
PathCoverageTest.cpp 29 uint32_t estimatedQuadraticPointCount(const SkPoint points[], SkScalar tol) {
46 uint32_t computedQuadraticPointCount(const SkPoint points[], SkScalar tol) {
48 if (d < tol) {
51 int temp = SkScalarCeil(SkScalarSqrt(SkScalarDiv(d, tol)));
  /external/skia/src/core/
SkCubicClipper.cpp 46 const SkScalar tol = SK_Scalar1 / 16384; // This leaves 2 fixed noise bits. local
66 converged = SkScalarAbs(t1 - t0) <= tol; // NaN-safe
96 const SkScalar tol = SK_Scalar1 / 65536; // 1 for fixed, 1e-5 for float.
113 } while (!(SkScalarAbs(tPos - tNeg) <= tol)); // Nan-safe

Completed in 124 milliseconds