|
Skia
2DGraphicsLibrary
|
Public Member Functions | |
| ComposeShaderContext (const SkComposeShader &, const ContextRec &, SkShader::Context *contextA, SkShader::Context *contextB) | |
| SkShader::Context * | getShaderContextA () const |
| SkShader::Context * | getShaderContextB () const |
| void | shadeSpan (int x, int y, SkPMColor[], int count) override |
| Called for each span of the object being drawn. More... | |
Public Member Functions inherited from SkShader::Context | |
| Context (const SkShader &shader, const ContextRec &) | |
| virtual uint32_t | getFlags () const |
| Called sometimes before drawing with this shader. More... | |
| bool | supports4f () const |
| virtual void | shadeSpan4f (int x, int y, SkPM4f[], int count) |
| virtual ShadeProc | asAShadeProc (void **ctx) |
| virtual void | shadeSpanAlpha (int x, int y, uint8_t alpha[], int count) |
| Similar to shadeSpan, but only returns the alpha-channel for a span. More... | |
| virtual void | set3DMask (const SkMask *) |
Private Types | |
| typedef SkShader::Context | INHERITED |
Private Attributes | |
| SkShader::Context * | fShaderContextA |
| SkShader::Context * | fShaderContextB |
Additional Inherited Members | |
Public Types inherited from SkShader::Context | |
| typedef void(* | ShadeProc )(const void *ctx, int x, int y, SkPMColor[], int count) |
| The const void* ctx is only const because all the implementations are const. More... | |
Protected Types inherited from SkShader::Context | |
| enum | MatrixClass { kLinear_MatrixClass, kFixedStepInX_MatrixClass, kPerspective_MatrixClass } |
Protected Member Functions inherited from SkShader::Context | |
| uint8_t | getPaintAlpha () const |
| const SkMatrix & | getTotalInverse () const |
| MatrixClass | getInverseClass () const |
| const SkMatrix & | getCTM () const |
Static Protected Member Functions inherited from SkShader::Context | |
| static MatrixClass | ComputeMatrixClass (const SkMatrix &) |
Protected Attributes inherited from SkShader::Context | |
| const SkShader & | fShader |
|
overridevirtual |
Called for each span of the object being drawn.
Your subclass should set the appropriate colors (with premultiplied alpha) that correspond to the specified device coordinates.
Implements SkShader::Context.