• Home
  • Raw
  • Download

Lines Matching refs:patchWriter

235         if (VertexWriter patchWriter = fChunkBuilder.appendVertex()) {  in writePatchTo()  local
236 patchWriter << fLastControlPoint; in writePatchTo()
237 patchWriter.writeArray(p, 4); in writePatchTo()
238 this->writeDynamicAttribs(&patchWriter); in writePatchTo()
579 if (VertexWriter patchWriter = fChunkBuilder.appendVertex()) { in internalJoinTo() local
580 patchWriter << fLastControlPoint << junctionPoint; in internalJoinTo()
585 patchWriter << junctionPoint << junctionPoint; in internalJoinTo()
590 patchWriter << nextControlPoint << nextControlPoint; in internalJoinTo()
592 patchWriter << (nextControlPoint); in internalJoinTo()
593 this->writeDynamicAttribs(&patchWriter); in internalJoinTo()
599 SK_ALWAYS_INLINE void writeDynamicAttribs(VertexWriter* patchWriter) { in writeDynamicAttribs() argument
601 *patchWriter << fDynamicStroke; in writeDynamicAttribs()
604 *patchWriter << fDynamicColor; in writeDynamicAttribs()
710 PatchWriter patchWriter(fAttribs, in prepare() local
724 patchWriter.parametricPrecision(), localStrokeWidth); in prepare()
725 patchWriter.updateTolerances(numRadialSegmentsPerRadian, stroke.getJoin()); in prepare()
730 StrokeToleranceBuffer toleranceBuffer(patchWriter.parametricPrecision()); in prepare()
736 patchWriter.updateTolerances(toleranceBuffer.fetchRadialSegmentsPerRadian(pathStroke), in prepare()
738 patchWriter.updateDynamicStroke(stroke); in prepare()
741 patchWriter.updateDynamicColor(pathStroke->fColor); in prepare()
756 patchWriter.writeCaps(p[-1], shaderMatrix, stroke); in prepare()
758 patchWriter.moveTo(p[0]); in prepare()
762 patchWriter.writeClose(p[0], shaderMatrix, stroke); in prepare()
771 prevJoinFitsInPatch = patchWriter.lineFitsInPatch_withJoin(); in prepare()
784 patchWriter.writeLineTo(p[0], p[2]); in prepare()
791 patchWriter.writeLineTo(p[0], cusp); in prepare()
792 patchWriter.writeLineTo(JoinType::kBowtie, cusp, p[2]); in prepare()
796 wangs_formula::quadratic_pow4(patchWriter.parametricPrecision(), p); in prepare()
797 if (!patchWriter.stroke180FitsInPatch(numParametricSegments_pow4)) { in prepare()
800 patchWriter.writeConicPatchesTo(p, 1); in prepare()
805 prevJoinFitsInPatch = patchWriter.stroke180FitsInPatch_withJoin( in prepare()
819 patchWriter.writeLineTo(p[0], p[2]); in prepare()
827 patchWriter.writeLineTo(p[0], cusp); in prepare()
828 patchWriter.writeLineTo(JoinType::kBowtie, cusp, p[2]); in prepare()
834 float n = wangs_formula::conic_pow2(patchWriter.parametricPrecision(), p, *w); in prepare()
836 if (!patchWriter.stroke180FitsInPatch(numParametricSegments_pow4)) { in prepare()
839 patchWriter.writeConicPatchesTo(p, *w); in prepare()
844 prevJoinFitsInPatch = patchWriter.stroke180FitsInPatch_withJoin( in prepare()
856 patchWriter.writeLineTo(p[0], p[3]); in prepare()
860 wangs_formula::cubic_pow4(patchWriter.parametricPrecision(), p); in prepare()
861 if (!patchWriter.stroke360FitsInPatch(numParametricSegments_pow4) || in prepare()
868 patchWriter.writeCubicConvex180PatchesTo(p); in prepare()
873 prevJoinFitsInPatch = patchWriter.stroke360FitsInPatch_withJoin( in prepare()
880 patchWriter.writePatchTo(prevJoinFitsInPatch, patchPts, endControlPoint); in prepare()
884 patchWriter.writeCaps(p[path.countPoints() - 1], shaderMatrix, stroke); in prepare()