Lines Matching refs:proc
31 const GrCCCoverageProcessor& proc = args.fGP.cast<GrCCCoverageProcessor>(); in onEmitCode() local
34 SkASSERT(1 == proc.numVertexAttributes()); in onEmitCode()
35 gpArgs->fPositionVar = proc.fVertexAttribute.asShaderVar(); in onEmitCode()
39 this->emitGeometryShader(proc, varyingHandler, args.fGeomBuilder, args.fRTAdjustName); in onEmitCode()
40 varyingHandler->emitAttributes(proc); in onEmitCode()
45 fShader->emitFragmentCode(proc, args.fFragBuilder, args.fOutputColor, args.fOutputCoverage); in onEmitCode()
48 void emitGeometryShader(const GrCCCoverageProcessor& proc, in emitGeometryShader() argument
51 int numInputPoints = proc.numInputPoints(); in emitGeometryShader()
54 int inputWidth = (4 == numInputPoints || proc.hasInputWeight()) ? 4 : 3; in emitGeometryShader()
61 Shader::CalcWind(proc, g, "pts", wind.c_str()); in emitGeometryShader()
62 if (PrimitiveType::kWeightedTriangles == proc.fPrimitiveType) { in emitGeometryShader()
64 SkASSERT(kFloat4_GrVertexAttribType == proc.fVertexAttribute.cpuType()); in emitGeometryShader()
77 if (GSSubpass::kCorners == proc.fGSSubpass) { in emitGeometryShader()
97 if (proc.debugBloatEnabled()) { in emitGeometryShader()
98 bloat *= proc.debugBloat(); in emitGeometryShader()
103 this->onEmitGeometryShader(proc, g, wind, emitVertexFn.c_str()); in emitGeometryShader()
295 void onEmitGeometryShader(const GrCCCoverageProcessor& proc, GrGLSLGeometryBuilder* g, in onEmitGeometryShader() argument
300 if (!proc.isTriangles()) { in onEmitGeometryShader()
301 g->codeAppendf("corneridx *= %i;", proc.numInputPoints() - 1); in onEmitGeometryShader()
306 wind.c_str(), proc.numInputPoints() - 1, proc.numInputPoints()); in onEmitGeometryShader()
308 wind.c_str(), proc.numInputPoints() - 1, proc.numInputPoints()); in onEmitGeometryShader()
327 if (proc.isTriangles()) { in onEmitGeometryShader()
374 g->configure(InputType::kLines, OutputType::kTriangleStrip, 4, proc.isTriangles() ? 3 : 2); in onEmitGeometryShader()