Searched refs:numParametricSegments (Results 1 – 3 of 3) sorted by relevance
/external/skia/src/gpu/tessellate/ |
D | GrStrokeHardwareTessellator.cpp | 18 static float num_combined_segments(float numParametricSegments, float numRadialSegments) { in num_combined_segments() argument 34 return numParametricSegments + numRadialSegments - 1; in num_combined_segments() 379 float numParametricSegments = GrWangsFormula::root4(numParametricSegments_pow4); in internalConicPatchesTo() local 380 numParametricSegments = std::max(std::ceil(numParametricSegments), 1.f); in internalConicPatchesTo() 381 float numCombinedSegments = num_combined_segments(numParametricSegments, numRadialSegments); in internalConicPatchesTo() 388 maxDepth = sk_float_nextlog2(numParametricSegments) + in internalConicPatchesTo() 394 if (numParametricSegments >= numRadialSegments) { in internalConicPatchesTo() 403 float chopT = (numParametricSegments >= numRadialSegments) ? .5f in internalConicPatchesTo() 443 float numParametricSegments = GrWangsFormula::root4(numParametricSegments_pow4); in internalCubicConvex180PatchesTo() local 444 numParametricSegments = std::max(std::ceil(numParametricSegments), 1.f); in internalCubicConvex180PatchesTo() [all …]
|
D | GrStrokeIndirectTessellator.cpp | 114 float numParametricSegments = in countQuad() local 121 this->writeResolveLevel(numParametricSegments, rotation, resolveLevelPtr); in countQuad() 125 float numParametricSegments = GrWangsFormula::cubic(fTolerances.fParametricPrecision, pts); in countCubic() local 133 this->writeResolveLevel(numParametricSegments, rotation, resolveLevelPtr); in countCubic() 147 void writeResolveLevel(float numParametricSegments, float rotation, in writeResolveLevel() argument 150 fTolerances.fNumRadialSegmentsPerRadian * rotation + numParametricSegments; in writeResolveLevel() 315 auto numParametricSegments = skvx::sqrt(fWangsTermQuadratic * skvx::sqrt(l)); in flushQuads() local 330 this->writeResolveLevels<N>(numParametricSegments, rotation, fQuadQueue.fCount, in flushQuads() 373 auto numParametricSegments = skvx::sqrt(fWangsTermCubic * skvx::sqrt(skvx::max(l0, l1))); in flushCubics() local 393 this->writeResolveLevels<N>(numParametricSegments, rotation, queue.fCount, in flushCubics() [all …]
|
/external/skia/tests/ |
D | StrokeIndirectTest.cpp | 333 float numParametricSegments = (hasCusp) ? 0 : GrWangsFormula::quadratic( in verifyResolveLevels() local 342 float numSegments = numParametricSegments + numRadialSegments; in verifyResolveLevels() 376 float numParametricSegments = in verifyResolveLevels() local 387 float numSegments = numParametricSegments + numRadialSegments; in verifyResolveLevels() 457 float numParametricSegments = GrWangsFormula::cubic(tolerances.fParametricPrecision, p); in verifyBuffers() local 458 float alternateNumParametricSegments = numParametricSegments; in verifyBuffers() 479 float numSegments = numParametricSegments + numRadialSegments; in verifyBuffers()
|