![]() |
Flutter Engine
The Flutter Engine
|
Public Member Functions | |
void | setData (const GrGLSLProgramDataManager &pdman, const GrShaderCaps &shaderCaps, const GrGeometryProcessor &geomProc) override |
![]() | |
virtual | ~ProgramImpl ()=default |
std::tuple< FPCoordsMap, GrShaderVar > | emitCode (EmitArgs &, const GrPipeline &pipeline) |
void | emitTransformCode (GrGLSLVertexBuilder *vb, GrGLSLUniformHandler *uniformHandler) |
virtual void | setData (const GrGLSLProgramDataManager &, const GrShaderCaps &, const GrGeometryProcessor &)=0 |
Additional Inherited Members | |
![]() | |
using | UniformHandle = GrGLSLProgramDataManager::UniformHandle |
using | SamplerHandle = GrGLSLUniformHandler::SamplerHandle |
using | FPCoordsMap = std::unordered_map< const GrFragmentProcessor *, FPCoords > |
![]() | |
static uint32_t | ComputeMatrixKey (const GrShaderCaps &caps, const SkMatrix &mat) |
static uint32_t | ComputeMatrixKeys (const GrShaderCaps &shaderCaps, const SkMatrix &viewMatrix, const SkMatrix &localMatrix) |
static uint32_t | AddMatrixKeys (const GrShaderCaps &shaderCaps, uint32_t flags, const SkMatrix &viewMatrix, const SkMatrix &localMatrix) |
![]() | |
static constexpr int | kMatrixKeyBits = 2 |
![]() | |
void | setupUniformColor (GrGLSLFPFragmentBuilder *fragBuilder, GrGLSLUniformHandler *uniformHandler, const char *outputName, UniformHandle *colorUniform) |
![]() | |
static void | SetTransform (const GrGLSLProgramDataManager &, const GrShaderCaps &, const UniformHandle &uniform, const SkMatrix &matrix, SkMatrix *state=nullptr) |
static void | WriteOutputPosition (GrGLSLVertexBuilder *, GrGPArgs *, const char *posName) |
static void | WriteOutputPosition (GrGLSLVertexBuilder *, GrGLSLUniformHandler *, const GrShaderCaps &, GrGPArgs *, const char *posName, const SkMatrix &viewMatrix, UniformHandle *viewMatrixUniform) |
static void | WriteLocalCoord (GrGLSLVertexBuilder *, GrGLSLUniformHandler *, const GrShaderCaps &, GrGPArgs *, GrShaderVar localVar, const SkMatrix &localMatrix, UniformHandle *localMatrixUniform) |
Definition at line 212 of file GrBezierEffect.cpp.
|
inlineoverridevirtual |
A ProgramImpl instance can be reused with any GrGeometryProcessor that produces the same key. This function reads data from a GrGeometryProcessor and updates any uniform variables required by the shaders created in emitCode(). The GrGeometryProcessor parameter is guaranteed to be of the same type and to have an identical processor key as the GrGeometryProcessor that created this ProgramImpl.
Implements GrGeometryProcessor::ProgramImpl.
Definition at line 214 of file GrBezierEffect.cpp.