8#ifndef SkImageShader_DEFINED
9#define SkImageShader_DEFINED
35 bool clampAsIfUnpremul =
false);
51 bool clampAsIfUnpremul =
false);
58 bool clampAsIfUnpremul);
71 bool isRaw()
const {
return fRaw; }
77#ifdef SK_ENABLE_LEGACY_SHADERCONTEXT
94 const bool fClampAsIfUnpremul;
#define SK_FLATTENABLE_HOOKS(type)
SkSamplingOptions sampling() const
static sk_sp< SkShader > Make(sk_sp< SkImage >, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix, bool clampAsIfUnpremul=false)
static SkM44 CubicResamplerMatrix(float B, float C)
ShaderType type() const override
bool isOpaque() const override
static sk_sp< SkShader > MakeSubset(sk_sp< SkImage >, const SkRect &subset, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix, bool clampAsIfUnpremul=false)
SkTileMode tileModeX() const
sk_sp< SkImage > image() const
SkImageShader(sk_sp< SkImage >, const SkRect &subset, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, bool raw, bool clampAsIfUnpremul)
static sk_sp< SkShader > MakeRaw(sk_sp< SkImage >, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix)
SkTileMode tileModeY() const
friend class SkShaderBase