Flutter Engine
The Flutter Engine
|
Public Member Functions | |
BitmapProcShaderContext (const SkShaderBase &shader, const SkShaderBase::ContextRec &rec, SkBitmapProcState *state) | |
uint32_t | getFlags () const override |
void | shadeSpan (int x, int y, SkPMColor dstC[], int count) override |
Public Member Functions inherited from SkShaderBase::Context | |
Context (const SkShaderBase &shader, const ContextRec &) | |
virtual | ~Context () |
virtual uint32_t | getFlags () const |
virtual void | shadeSpan (int x, int y, SkPMColor[], int count)=0 |
Public Member Functions inherited from SkNoncopyable | |
SkNoncopyable ()=default | |
SkNoncopyable (SkNoncopyable &&)=default | |
SkNoncopyable & | operator= (SkNoncopyable &&)=default |
Additional Inherited Members | |
Protected Member Functions inherited from SkShaderBase::Context | |
uint8_t | getPaintAlpha () const |
const SkMatrix & | getTotalInverse () const |
Protected Attributes inherited from SkShaderBase::Context | |
const SkShaderBase & | fShader |
Definition at line 22 of file SkBitmapProcShader.cpp.
|
inline |
Definition at line 24 of file SkBitmapProcShader.cpp.
|
inlineoverridevirtual |
Called sometimes before drawing with this shader. Return the type of alpha your shader will return. The default implementation returns 0. Your subclass should override if it can (even sometimes) report a non-zero value, since that will enable various blitters to perform faster.
Reimplemented from SkShaderBase::Context.
Definition at line 35 of file SkBitmapProcShader.cpp.
|
inlineoverridevirtual |
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 SkShaderBase::Context.
Definition at line 37 of file SkBitmapProcShader.cpp.