Flutter Engine
The Flutter Engine
|
#include <SkRuntimeShader.h>
Additional Inherited Members | |
Public Types inherited from SkShaderBase | |
enum class | ShaderType { M } |
enum class | GradientType { kNone , M } |
enum | Flags { kOpaqueAlpha_Flag = 1 << 0 } |
Public Types inherited from SkFlattenable | |
enum | Type { kSkColorFilter_Type , kSkBlender_Type , kSkDrawable_Type , kSkDrawLooper_Type , kSkImageFilter_Type , kSkMaskFilter_Type , kSkPathEffect_Type , kSkShader_Type } |
typedef sk_sp< SkFlattenable >(* | Factory) (SkReadBuffer &) |
Static Public Member Functions inherited from SkShaderBase | |
static Type | GetFlattenableType () |
static sk_sp< SkShaderBase > | Deserialize (const void *data, size_t size, const SkDeserialProcs *procs=nullptr) |
static void | RegisterFlattenables () |
static SkMatrix | ConcatLocalMatrices (const SkMatrix &parentLM, const SkMatrix &childLM) |
Static Public Member Functions inherited from SkFlattenable | |
static Factory | NameToFactory (const char name[]) |
static const char * | FactoryToName (Factory) |
static void | Register (const char name[], Factory) |
static sk_sp< SkFlattenable > | Deserialize (Type, const void *data, size_t length, const SkDeserialProcs *procs=nullptr) |
Protected Member Functions inherited from SkShaderBase | |
SkShaderBase () | |
void | flatten (SkWriteBuffer &) const override |
virtual bool | onAsLuminanceColor (SkColor4f *) const |
Definition at line 30 of file SkRuntimeShader.h.
SkRuntimeShader::SkRuntimeShader | ( | sk_sp< SkRuntimeEffect > | effect, |
sk_sp< SkSL::DebugTracePriv > | debugTrace, | ||
sk_sp< const SkData > | uniforms, | ||
SkSpan< const SkRuntimeEffect::ChildPtr > | children | ||
) |
Definition at line 44 of file SkRuntimeShader.cpp.
SkRuntimeShader::SkRuntimeShader | ( | sk_sp< SkRuntimeEffect > | effect, |
sk_sp< SkSL::DebugTracePriv > | debugTrace, | ||
UniformsCallback | uniformsCallback, | ||
SkSpan< const SkRuntimeEffect::ChildPtr > | children | ||
) |
|
overridevirtual |
Adds stages to implement this shader. To ensure that the correct input coords are present in r,g MatrixRec::apply() must be called (unless the shader doesn't require it's input coords). The default impl creates shadercontext and calls that (not very efficient).
Implements SkShaderBase.
Definition at line 79 of file SkRuntimeShader.cpp.
|
inlineoverridevirtual |
|
inline |
Definition at line 55 of file SkRuntimeShader.h.
|
inline |
Definition at line 54 of file SkRuntimeShader.h.
|
overridevirtual |
Override this if your subclass needs to record data that it will need to recreate itself from its CreateProc (returned by getFactory()).
DEPRECATED public : will move to protected ... use serialize() instead
Reimplemented from SkFlattenable.
Definition at line 103 of file SkRuntimeShader.cpp.
|
inlineoverridevirtual |
Returns true if the shader is guaranteed to produce only opaque colors, subject to the SkPaint using the shader to apply an opaque alpha value. Subclasses should override this to allow some optimizations.
Reimplemented from SkShader.
Definition at line 44 of file SkRuntimeShader.h.
SkRuntimeEffect::TracedShader SkRuntimeShader::makeTracedClone | ( | const SkIPoint & | coord | ) |
Definition at line 70 of file SkRuntimeShader.cpp.
|
inlineoverridevirtual |
Implements SkShaderBase.
Definition at line 46 of file SkRuntimeShader.h.
sk_sp< const SkData > SkRuntimeShader::uniformData | ( | const SkColorSpace * | dstCS | ) | const |
Definition at line 109 of file SkRuntimeShader.cpp.