22 GrGLSLProgramDataManager::UniformHandle* blendUniform,
27 if (
info.fUniformData.empty()) {
34 const char* blendUniName;
36 skslType,
"blend", &blendUniName);
74 GrGLSLProgramDataManager::UniformHandle blendUniform,
77 switch (
info.fUniformData.size()) {
82 pdman.
set1f(blendUniform,
info.fUniformData[0]);
85 pdman.
set2f(blendUniform,
info.fUniformData[0],
info.fUniformData[1]);
88 pdman.
set3f(blendUniform,
info.fUniformData[0],
info.fUniformData[1],
89 info.fUniformData[2]);
92 pdman.
set4f(blendUniform,
info.fUniformData[0],
info.fUniformData[1],
93 info.fUniformData[2],
info.fUniformData[3]);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kSaturation
saturation of source with hue and luminosity of destination
@ kLighten
rc = s + d - min(s*da, d*sa), ra = kSrcOver
@ kHue
hue of source with saturation and luminosity of destination
@ kSrcOver
r = s + (1-sa)*d
@ kXor
r = s*(1-da) + d*(1-sa)
@ kLuminosity
luminosity of source with hue and saturation of destination
@ kOverlay
multiply or screen, depending on destination
@ kSrcATop
r = s*da + d*(1-sa)
@ kDstATop
r = d*sa + s*(1-da)
@ kDstOver
r = d + (1-da)*s
@ kColor
hue and saturation of source with luminosity of destination
@ kHardLight
multiply or screen, depending on source
@ kDarken
rc = s + d - max(s*da, d*sa), ra = kSrcOver
virtual void set2f(UniformHandle, float, float) const =0
virtual void set4f(UniformHandle, float, float, float, float) const =0
virtual void set3f(UniformHandle, float, float, float) const =0
virtual void set1f(UniformHandle, float v0) const =0
std::string BlendExpression(const GrProcessor *processor, GrGLSLUniformHandler *uniformHandler, GrGLSLProgramDataManager::UniformHandle *blendUniform, const char *srcColor, const char *dstColor, SkBlendMode mode)
int BlendKey(SkBlendMode mode)
void SetBlendModeUniformData(const GrGLSLProgramDataManager &pdman, GrGLSLProgramDataManager::UniformHandle blendUniform, SkBlendMode mode)
std::string printf(const char *fmt,...) SK_PRINTF_LIKE(1
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
ReducedBlendModeInfo GetReducedBlendModeInfo(SkBlendMode mode)