Home
last modified time | relevance | path

Searched refs:inputColor (Results 1 – 25 of 40) sorted by relevance

12

/external/skia/src/gpu/effects/
DGrCustomXfermode.cpp283 const char* inputColor, in emit_custom_xfermode_code() argument
286 if (NULL == inputColor) { in emit_custom_xfermode_code()
288 inputColor = "ones"; in emit_custom_xfermode_code()
294 outputColor, inputColor, inputColor, dstColor); in emit_custom_xfermode_code()
299 hard_light(fsBuilder, outputColor, dstColor, inputColor); in emit_custom_xfermode_code()
305 inputColor, dstColor, inputColor, in emit_custom_xfermode_code()
306 dstColor, inputColor, dstColor); in emit_custom_xfermode_code()
312 inputColor, dstColor, inputColor, in emit_custom_xfermode_code()
313 dstColor, inputColor, dstColor); in emit_custom_xfermode_code()
316 color_dodge_component(fsBuilder, outputColor, inputColor, dstColor, 'r'); in emit_custom_xfermode_code()
[all …]
DGrDitherEffect.cpp73 const char* inputColor,
87 const char* inputColor, in emitCode() argument
104 outputColor, GrGLSLExpr4(inputColor).c_str()); in emitCode()
DGrConvexPolyEffect.cpp91 const char* inputColor,
112 const char* inputColor, in emitCode() argument
150 (GrGLSLExpr4(inputColor) * GrGLSLExpr1("alpha")).c_str()); in emitCode()
186 const char* inputColor,
207 const char* inputColor, in emitCode() argument
243 (GrGLSLExpr4(inputColor) * GrGLSLExpr1("alpha")).c_str()); in emitCode()
DGrOvalEffect.cpp103 const char* inputColor,
126 const char* inputColor, in emitCode() argument
160 (GrGLSLExpr4(inputColor) * GrGLSLExpr1("d")).c_str()); in emitCode()
286 const char* inputColor,
309 const char* inputColor, in emitCode() argument
352 (GrGLSLExpr4(inputColor) * GrGLSLExpr1("alpha")).c_str()); in emitCode()
DGrConstColorProcessor.cpp20 const char* inputColor, in emitCode() argument
33 fsBuilder->codeAppendf("%s = %s * %s;", outputColor, inputColor, colorUni); in emitCode()
36 fsBuilder->codeAppendf("%s = %s.a * %s;", outputColor, inputColor, colorUni); in emitCode()
DGrSimpleTextureEffect.cpp24 const char* inputColor, in emitCode() argument
29 fsBuilder->appendTextureLookupAndModulate(inputColor, in emitCode()
DGrBicubicEffect.cpp29 const char* inputColor,
57 const char* inputColor, in emitCode() argument
113 …\t%s = %s;\n", outputColor, (GrGLSLExpr4(bicubicColor.c_str()) * GrGLSLExpr4(inputColor)).c_str()); in emitCode()
DGrConvolutionEffect.cpp24 const char* inputColor,
57 const char* inputColor, in emitCode() argument
102 GrGLSLMulVarBy4f(&modulate, outputColor, inputColor); in emitCode()
DGrRRectEffect.cpp138 const char* inputColor,
160 const char* inputColor, in emitCode() argument
287 (GrGLSLExpr4(inputColor) * GrGLSLExpr1("alpha")).c_str()); in emitCode()
495 const char* inputColor,
517 const char* inputColor, in emitCode() argument
587 (GrGLSLExpr4(inputColor) * GrGLSLExpr1("alpha")).c_str()); in emitCode()
DGrTextureDomain.cpp175 const char* inputColor,
194 const char* inputColor, in emitCode() argument
202 fGLDomain.sampleTexture(fsBuilder, domain, outputColor, coords2D, samplers[0], inputColor); in emitCode()
DGrMatrixConvolutionEffect.cpp19 const char* inputColor,
51 const char* inputColor, in emitCode() argument
110 GrGLSLMulVarBy4f(&modulate, outputColor, inputColor); in emitCode()
/external/skia/src/effects/
DSkColorCubeFilter.cpp134 SkColor inputColor = SkUnPreMultiply::PMColorToColor(src[i]); in filterSpan() local
135 uint8_t r = SkColorGetR(inputColor); in filterSpan()
136 uint8_t g = SkColorGetG(inputColor); in filterSpan()
137 uint8_t b = SkColorGetB(inputColor); in filterSpan()
138 uint8_t a = SkColorGetA(inputColor); in filterSpan()
214 const char* inputColor,
273 const char* inputColor, in emitCode() argument
276 if (NULL == inputColor) { in emitCode()
277 inputColor = "vec4(1)"; in emitCode()
301 fsBuilder->codeAppendf("\tfloat %s = max(%s.a, 0.00001);\n", nonZeroAlpha, inputColor); in emitCode()
[all …]
DSkLumaColorFilter.cpp86 const char* inputColor, in emitCode() argument
89 if (NULL == inputColor) { in emitCode()
90 inputColor = "vec4(1)"; in emitCode()
98 inputColor); in emitCode()
DSkArithmeticMode_gpu.cpp24 const char* inputColor, in add_arithmetic_code() argument
30 if (NULL == inputColor) { in add_arithmetic_code()
33 fsBuilder->codeAppendf("vec4 src = %s;", inputColor); in add_arithmetic_code()
66 const char* inputColor, in emitCode() argument
80 add_arithmetic_code(fsBuilder, inputColor, dstColor, outputColor, kUni, fEnforcePMColor); in emitCode()
DSkColorFilters.cpp172 const char* inputColor, in emitCode() argument
188 GrGLSLExpr4(inputColor)); in emitCode()
324 float inputColor[4]; in onComputeInvariantOutput() local
325 GrColorToRGBAFloat(inout->color(), inputColor); in onComputeInvariantOutput()
331 MaskedColorExpr(inputColor, inout->validFlags())); in onComputeInvariantOutput()
DSkTableColorFilter.cpp383 const char* inputColor,
421 const char* inputColor, in emitCode() argument
431 if (NULL == inputColor) { in emitCode()
438 fsBuilder->codeAppendf("\t\tfloat nonZeroAlpha = max(%s.a, .0001);\n", inputColor); in emitCode()
439 …sBuilder->codeAppendf("\t\tvec4 coord = vec4(%s.rgb / nonZeroAlpha, nonZeroAlpha);\n", inputColor); in emitCode()
DSkColorMatrixFilter.cpp433 const char* inputColor, in emitCode() argument
443 if (NULL == inputColor) { in emitCode()
445 inputColor = "vec4(1)"; in emitCode()
450 fsBuilder->codeAppendf("\tfloat nonZeroAlpha = max(%s.a, 0.00001);\n", inputColor); in emitCode()
454 inputColor, in emitCode()
DSkAlphaThresholdFilter.cpp128 const char* inputColor,
145 const char* inputColor, in emitCode() argument
190 (GrGLSLExpr4(inputColor) * GrGLSLExpr4("color")).c_str()); in emitCode()
DSkMagnifierImageFilter.cpp113 const char* inputColor,
134 const char* inputColor, in emitCode() argument
184 GrGLSLMulVarBy4f(&modulate, outputColor, inputColor); in emitCode()
/external/skia/src/gpu/gl/
DGrGLXferProcessor.h25 const char* inputColor, in EmitArgs()
32 , fInputColor(inputColor) in EmitArgs()
DGrGLProcessor.h102 const char* inputColor,
/external/skia/src/effects/gradients/
DSkTwoPointConicalGradient_gpu.cpp147 const char* inputColor,
234 const char* inputColor, in emitCode() argument
285 this->emitColor(builder, ge, tName.c_str(), outputColor, inputColor, samplers); in emitCode()
435 const char* inputColor,
523 const char* inputColor, in emitCode() argument
565 this->emitColor(builder, ge, tName.c_str(), outputColor, inputColor, samplers); in emitCode()
656 const char* inputColor,
740 const char* inputColor, in emitCode() argument
763 this->emitColor(builder, ge, tName.c_str(), outputColor, inputColor, samplers); in emitCode()
907 const char* inputColor,
[all …]
DSkSweepGradient.cpp196 const char* inputColor,
274 const char* inputColor, in emitCode() argument
292 this->emitColor(builder, ge, t.c_str(), outputColor, inputColor, samplers); in emitCode()
/external/skia/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp67 GrGLSLExpr4 inputColor; in CreateProgram() local
70 if (!pb->emitAndInstallProcs(&inputColor, &inputCoverage)) { in CreateProgram()
194 bool GrGLProgramBuilder::emitAndInstallProcs(GrGLSLExpr4* inputColor, GrGLSLExpr4* inputCoverage) { in emitAndInstallProcs() argument
215 this->emitAndInstallProc(primProc, inputColor, inputCoverage); in emitAndInstallProcs()
219 this->emitAndInstallFragProcs(0, this->pipeline().numColorFragmentStages(), inputColor); in emitAndInstallProcs()
222 this->emitAndInstallXferProc(*this->pipeline().getXferProcessor(), *inputColor, *inputCoverage); in emitAndInstallProcs()
/external/skia/tests/
DGpuColorFilterTest.cpp40 GrColor inputColor; // "[color]" in test_getConstantColorComponents() member
106 GrInvariantOutput inout(test.inputColor, in test_getConstantColorComponents()

12