Home
last modified time | relevance | path

Searched refs:outputCoverage (Results 1 – 24 of 24) sorted by relevance

/external/skqp/src/gpu/ccpr/
DGrCCConicShader.cpp74 const char* outputCoverage) const { in onEmitFragmentCode()
76 outputCoverage); in onEmitFragmentCode()
77 f->codeAppendf("%s *= %s.w;", outputCoverage, fKLM_fWind.fsIn()); // Wind. in onEmitFragmentCode()
81 outputCoverage, fGrad_fCorner.fsIn(), fGrad_fCorner.fsIn(), in onEmitFragmentCode()
82 outputCoverage); in onEmitFragmentCode()
87 const char* outputCoverage) const { in calcHullCoverage()
91 code->appendf("%s = min(0.5 - f/fwidth, 1);", outputCoverage); // Curve coverage. in calcHullCoverage()
93 code->appendf("%s = max(%s + d, 0);", outputCoverage, outputCoverage); // Total hull coverage. in calcHullCoverage()
DGrCCQuadraticShader.cpp68 const char* outputCoverage) const { in onEmitFragmentCode()
71 outputCoverage); in onEmitFragmentCode()
72 f->codeAppendf("%s *= %s.y;", outputCoverage, fEdge_fWind_fCorner.fsIn()); // Wind. in onEmitFragmentCode()
76 outputCoverage, fEdge_fWind_fCorner.fsIn(), fEdge_fWind_fCorner.fsIn(), in onEmitFragmentCode()
77 outputCoverage); in onEmitFragmentCode()
82 const char* edge, const char* outputCoverage) const { in calcHullCoverage()
87 code->appendf("%s = min(0.5 - f/fwidth, 1);", outputCoverage); // Curve coverage. in calcHullCoverage()
89 code->appendf("%s = max(%s + d, 0);", outputCoverage, outputCoverage); // Total hull coverage. in calcHullCoverage()
DGrCCCubicShader.cpp124 const char* outputCoverage) const { in onEmitFragmentCode()
126 outputCoverage); in onEmitFragmentCode()
132 f->codeAppendf("%s *= wind;", outputCoverage); in onEmitFragmentCode()
136 outputCoverage, fCornerCoverage.fsIn(), fCornerCoverage.fsIn(), in onEmitFragmentCode()
137 outputCoverage); in onEmitFragmentCode()
142 const char* gradMatrix, const char* outputCoverage) const { in calcHullCoverage()
147 code->appendf("%s = min(0.5 - f/fwidth, 1);", outputCoverage); // Curve coverage. in calcHullCoverage()
149 code->appendf("%s = max(%s + d, 0);", outputCoverage, outputCoverage); // Total hull coverage. in calcHullCoverage()
DGrCCCoverageProcessor.cpp35 void onEmitFragmentCode(GrGLSLFPFragmentBuilder* f, const char* outputCoverage) const override { in onEmitFragmentCode()
37 f->codeAppendf("%s = %s;", outputCoverage, fCoverages.fsIn()); in onEmitFragmentCode()
40 outputCoverage, fCoverages.fsIn(), fCoverages.fsIn(), fCoverages.fsIn()); in onEmitFragmentCode()
94 const char* outputCoverage) { in CalcEdgeCoverageAtBloatVertex() argument
122 s->codeAppendf("%s = (abs(t) != nwidth ? t / nwidth : sign(t)) * -.5 - .5;", outputCoverage); in CalcEdgeCoverageAtBloatVertex()
DGrCCConicShader.h32 void onEmitFragmentCode(GrGLSLFPFragmentBuilder*, const char* outputCoverage) const override;
36 const char* outputCoverage) const;
DGrCCCubicShader.h33 void onEmitFragmentCode(GrGLSLFPFragmentBuilder*, const char* outputCoverage) const override;
37 const char* outputCoverage) const;
DGrCCQuadraticShader.h32 void onEmitFragmentCode(GrGLSLFPFragmentBuilder*, const char* outputCoverage) const override;
36 const char* outputCoverage) const;
DGrCCCoverageProcessor.h160 const char* outputCoverage);
190 const char* outputCoverage) const = 0;
/external/skia/src/gpu/ccpr/
DGrCCQuadraticShader.cpp68 const char* outputCoverage) const { in onEmitFragmentCode()
71 outputCoverage); in onEmitFragmentCode()
72 f->codeAppendf("%s *= half(%s.y);", outputCoverage, fEdge_fWind_fCorner.fsIn()); // Wind. in onEmitFragmentCode()
76 outputCoverage, fEdge_fWind_fCorner.fsIn(), fEdge_fWind_fCorner.fsIn(), in onEmitFragmentCode()
77 outputCoverage); in onEmitFragmentCode()
82 const char* edge, const char* outputCoverage) const { in calcHullCoverage()
91 code->appendf("%s = max(half(curve_coverage + edge_coverage), 0);", outputCoverage); in calcHullCoverage()
DGrCCConicShader.cpp74 const char* outputCoverage) const { in onEmitFragmentCode()
76 outputCoverage); in onEmitFragmentCode()
77 f->codeAppendf("%s *= half(%s.w);", outputCoverage, fKLM_fWind.fsIn()); // Wind. in onEmitFragmentCode()
81 outputCoverage, fGrad_fCorner.fsIn(), fGrad_fCorner.fsIn(), in onEmitFragmentCode()
82 outputCoverage); in onEmitFragmentCode()
87 const char* outputCoverage) const { in calcHullCoverage()
95 code->appendf("%s = max(half(curve_coverage + edge_coverage), 0);", outputCoverage); in calcHullCoverage()
DGrCCCubicShader.cpp124 const char* outputCoverage) const { in onEmitFragmentCode()
126 outputCoverage); in onEmitFragmentCode()
132 f->codeAppendf("%s *= wind;", outputCoverage); in onEmitFragmentCode()
136 outputCoverage, fCornerCoverage.fsIn(), fCornerCoverage.fsIn(), in onEmitFragmentCode()
137 outputCoverage); in onEmitFragmentCode()
142 const char* gradMatrix, const char* outputCoverage) const { in calcHullCoverage()
151 code->appendf("%s = max(half(curve_coverage + edge_coverage), 0);", outputCoverage); in calcHullCoverage()
DGrCCCoverageProcessor.cpp35 void onEmitFragmentCode(GrGLSLFPFragmentBuilder* f, const char* outputCoverage) const override { in onEmitFragmentCode()
37 f->codeAppendf("%s = %s;", outputCoverage, fCoverages.fsIn()); in onEmitFragmentCode()
40 outputCoverage, fCoverages.fsIn(), fCoverages.fsIn(), fCoverages.fsIn()); in onEmitFragmentCode()
95 const char* outputCoverage) { in CalcEdgeCoverageAtBloatVertex() argument
124 outputCoverage); in CalcEdgeCoverageAtBloatVertex()
DGrCCConicShader.h32 void onEmitFragmentCode(GrGLSLFPFragmentBuilder*, const char* outputCoverage) const override;
36 const char* outputCoverage) const;
DGrCCCubicShader.h33 void onEmitFragmentCode(GrGLSLFPFragmentBuilder*, const char* outputCoverage) const override;
37 const char* outputCoverage) const;
DGrCCQuadraticShader.h32 void onEmitFragmentCode(GrGLSLFPFragmentBuilder*, const char* outputCoverage) const override;
36 const char* outputCoverage) const;
DGrCCCoverageProcessor.h160 const char* outputCoverage);
190 const char* outputCoverage) const = 0;
/external/skqp/src/gpu/
DGrProcessorSet.cpp202 GrProcessorAnalysisCoverage outputCoverage; in finalize() local
204 outputCoverage = GrProcessorAnalysisCoverage::kLCD; in finalize()
206 outputCoverage = GrProcessorAnalysisCoverage::kSingleChannel; in finalize()
208 outputCoverage = GrProcessorAnalysisCoverage::kNone; in finalize()
212 this->xpFactory(), colorAnalysis.outputColor(), outputCoverage, caps); in finalize()
240 outputCoverage, isMixedSamples, caps); in finalize()
/external/skia/src/gpu/
DGrProcessorSet.cpp202 GrProcessorAnalysisCoverage outputCoverage; in finalize() local
204 outputCoverage = GrProcessorAnalysisCoverage::kLCD; in finalize()
206 outputCoverage = GrProcessorAnalysisCoverage::kSingleChannel; in finalize()
208 outputCoverage = GrProcessorAnalysisCoverage::kNone; in finalize()
212 this->xpFactory(), colorAnalysis.outputColor(), outputCoverage, caps, clampType); in finalize()
243 outputCoverage, hasMixedSampledCoverage, caps, in finalize()
/external/skia/src/gpu/glsl/
DGrGLSLPrimitiveProcessor.h75 const char* outputCoverage, in EmitArgs()
87 , fOutputCoverage(outputCoverage) in EmitArgs()
DGrGLSLProgramBuilder.cpp71 SkString* outputCoverage) { in emitAndInstallPrimProc() argument
78 this->nameExpression(outputCoverage, "outputCoverage"); in emitAndInstallPrimProc()
126 outputCoverage->c_str(), in emitAndInstallPrimProc()
DGrGLSLProgramBuilder.h149 void emitAndInstallPrimProc(SkString* outputColor, SkString* outputCoverage);
/external/skqp/src/gpu/glsl/
DGrGLSLPrimitiveProcessor.h75 const char* outputCoverage, in EmitArgs()
87 , fOutputCoverage(outputCoverage) in EmitArgs()
DGrGLSLProgramBuilder.cpp72 SkString* outputCoverage) { in emitAndInstallPrimProc() argument
79 this->nameExpression(outputCoverage, "outputCoverage"); in emitAndInstallPrimProc()
127 outputCoverage->c_str(), in emitAndInstallPrimProc()
DGrGLSLProgramBuilder.h144 void emitAndInstallPrimProc(SkString* outputColor, SkString* outputCoverage);