Skia
2DGraphicsLibrary
|
Public Member Functions | |
PerlinNoiseShaderContext (const SkPerlinNoiseShader &shader, const ContextRec &) | |
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... | |
virtual void | shadeSpan4f (int x, int y, SkPM4f[], int count) |
bool | chooseBlitProcs (const SkImageInfo &info, BlitState *state) |
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 Member Functions | |
SkPMColor | shade (const SkPoint &point, StitchData &stitchData) const |
SkScalar | calculateTurbulenceValueForPoint (int channel, StitchData &stitchData, const SkPoint &point) const |
SkScalar | noise2D (int channel, const StitchData &stitchData, const SkPoint &noiseVector) const |
Private Attributes | |
SkMatrix | fMatrix |
PaintingData * | fPaintingData |
Additional Inherited Members | |
Public Types inherited from SkShader::Context | |
typedef void(* | BlitBW )(BlitState *, int x, int y, const SkPixmap &, int count) |
typedef void(* | BlitAA )(BlitState *, int x, int y, const SkPixmap &, int count, const SkAlpha[]) |
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 |
virtual bool | onChooseBlitProcs (const SkImageInfo &, BlitState *) |
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.