Flutter Engine
The Flutter Engine
|
Functions | |
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 GrGLSLBlend::BlendExpression | ( | const GrProcessor * | processor, |
GrGLSLUniformHandler * | uniformHandler, | ||
GrGLSLProgramDataManager::UniformHandle * | uniform, | ||
const char * | srcColor, | ||
const char * | dstColor, | ||
SkBlendMode | mode | ||
) |
Returns an SkSL expression that blends the passed-in srcColor and dstColor values. Matching calls to SetBlendModeUniformData and BlendKey must be made from your GrProcessor.
Definition at line 20 of file GrGLSLBlend.cpp.
int GrGLSLBlend::BlendKey | ( | SkBlendMode | mode | ) |
Returns a key, for use in onAddToKey from any GrProcessor. You must pass the same blend mode that was passed to BlendExpression
Definition at line 40 of file GrGLSLBlend.cpp.
void GrGLSLBlend::SetBlendModeUniformData | ( | const GrGLSLProgramDataManager & | pdman, |
GrGLSLProgramDataManager::UniformHandle | uniform, | ||
SkBlendMode | mode | ||
) |
Sets up uniforms, for use in onSetData from any GrProcessor. You must pass the same uniform and blend mode that were passed to BlendExpression.
Definition at line 73 of file GrGLSLBlend.cpp.