Flutter Engine
The Flutter Engine
|
#include <SkImageShader.h>
Public Member Functions | |
SkImageShader (sk_sp< SkImage >, const SkRect &subset, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, bool raw, bool clampAsIfUnpremul) | |
bool | isOpaque () const override |
ShaderType | type () const override |
SkTileMode | tileModeX () const |
SkTileMode | tileModeY () const |
sk_sp< SkImage > | image () const |
SkSamplingOptions | sampling () const |
SkRect | subset () const |
bool | isRaw () const |
Public Member Functions inherited from SkShaderBase | |
~SkShaderBase () override | |
sk_sp< SkShader > | makeInvertAlpha () const |
sk_sp< SkShader > | makeWithCTM (const SkMatrix &) const |
virtual bool | isConstant () const |
virtual ShaderType | type () const =0 |
virtual GradientType | asGradient (GradientInfo *info=nullptr, SkMatrix *localMatrix=nullptr) const |
Context * | makeContext (const ContextRec &, SkArenaAlloc *) const |
bool | asLuminanceColor (SkColor4f *) const |
bool | appendRootStages (const SkStageRec &rec, const SkMatrix &ctm) const |
virtual bool | appendStages (const SkStageRec &, const SkShaders::MatrixRec &) const =0 |
virtual SkImage * | onIsAImage (SkMatrix *, SkTileMode[2]) const |
virtual SkRuntimeEffect * | asRuntimeEffect () const |
Type | getFlattenableType () const override |
virtual sk_sp< SkShader > | makeAsALocalMatrixShader (SkMatrix *localMatrix) const |
Public Member Functions inherited from SkShader | |
virtual bool | isOpaque () const |
SkImage * | isAImage (SkMatrix *localMatrix, SkTileMode xy[2]) const |
bool | isAImage () const |
sk_sp< SkShader > | makeWithLocalMatrix (const SkMatrix &) const |
sk_sp< SkShader > | makeWithColorFilter (sk_sp< SkColorFilter >) const |
sk_sp< SkShader > | makeWithWorkingColorSpace (sk_sp< SkColorSpace >) const |
Public Member Functions inherited from SkFlattenable | |
SkFlattenable () | |
virtual Factory | getFactory () const =0 |
virtual const char * | getTypeName () const =0 |
virtual void | flatten (SkWriteBuffer &) const |
virtual Type | getFlattenableType () const =0 |
sk_sp< SkData > | serialize (const SkSerialProcs *=nullptr) const |
size_t | serialize (void *memory, size_t memory_size, const SkSerialProcs *=nullptr) const |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Static Public Member Functions | |
static sk_sp< SkShader > | Make (sk_sp< SkImage >, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix, bool clampAsIfUnpremul=false) |
static sk_sp< SkShader > | MakeRaw (sk_sp< SkImage >, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix) |
static sk_sp< SkShader > | MakeSubset (sk_sp< SkImage >, const SkRect &subset, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix, bool clampAsIfUnpremul=false) |
static SkM44 | CubicResamplerMatrix (float B, float C) |
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) |
Friends | |
class | SkShaderBase |
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 &) |
Protected Member Functions inherited from SkShaderBase | |
SkShaderBase () | |
void | flatten (SkWriteBuffer &) const override |
virtual bool | onAsLuminanceColor (SkColor4f *) const |
Definition at line 28 of file SkImageShader.h.
SkImageShader::SkImageShader | ( | sk_sp< SkImage > | img, |
const SkRect & | subset, | ||
SkTileMode | tmx, | ||
SkTileMode | tmy, | ||
const SkSamplingOptions & | sampling, | ||
bool | raw, | ||
bool | clampAsIfUnpremul | ||
) |
Definition at line 95 of file SkImageShader.cpp.
|
static |
Definition at line 48 of file SkImageShader.cpp.
Definition at line 68 of file SkImageShader.h.
|
overridevirtual |
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 185 of file SkImageShader.cpp.
|
inline |
Definition at line 71 of file SkImageShader.h.
|
static |
Definition at line 294 of file SkImageShader.cpp.
|
static |
Definition at line 303 of file SkImageShader.cpp.
|
static |
Definition at line 324 of file SkImageShader.cpp.
|
inline |
Definition at line 69 of file SkImageShader.h.
|
inline |
Definition at line 70 of file SkImageShader.h.
|
inline |
Definition at line 66 of file SkImageShader.h.
|
inline |
Definition at line 67 of file SkImageShader.h.
|
inlineoverridevirtual |
Implements SkShaderBase.
Definition at line 62 of file SkImageShader.h.
|
friend |
Definition at line 96 of file SkImageShader.h.