Home
last modified time | relevance | path

Searched refs:SkShaderBase (Results 1 – 25 of 64) sorted by relevance

123

/external/skqp/src/shaders/
DSkShaderBase.h33 class SkShaderBase : public SkShader {
35 ~SkShaderBase() override;
82 Context(const SkShaderBase& shader, const ContextRec&);
104 const SkShaderBase& fShader;
190 static sk_sp<SkShaderBase> Deserialize(const void* data, size_t size,
192 return sk_sp<SkShaderBase>(static_cast<SkShaderBase*>(
198 SkShaderBase(const SkMatrix* localMatrix = nullptr);
224 return sk_ref_sp(const_cast<SkShaderBase*>(this)); in onMakeColorSpace()
237 inline SkShaderBase* as_SB(SkShader* shader) { in as_SB()
238 return static_cast<SkShaderBase*>(shader); in as_SB()
[all …]
DSkShader.cpp28 SkShaderBase::SkShaderBase(const SkMatrix* localMatrix) in SkShaderBase() function in SkShaderBase
34 SkShaderBase::~SkShaderBase() {} in ~SkShaderBase()
36 void SkShaderBase::flatten(SkWriteBuffer& buffer) const { in flatten()
46 SkShaderBase::totalLocalMatrix(const SkMatrix* preLocalMatrix, in totalLocalMatrix()
61 bool SkShaderBase::computeTotalInverse(const SkMatrix& ctm, in computeTotalInverse()
67 bool SkShaderBase::asLuminanceColor(SkColor* colorPtr) const { in asLuminanceColor()
79 SkShaderBase::Context* SkShaderBase::makeContext(const ContextRec& rec, SkArenaAlloc* alloc) const { in makeContext()
95 SkShaderBase::Context::Context(const SkShaderBase& shader, const ContextRec& rec) in Context()
110 SkShaderBase::Context::~Context() {} in ~Context()
125 std::unique_ptr<GrFragmentProcessor> SkShaderBase::asFragmentProcessor(const GrFPArgs&) const { in asFragmentProcessor()
[all …]
DSkBitmapProcShader.cpp20 class BitmapProcInfoContext : public SkShaderBase::Context {
23 BitmapProcInfoContext(const SkShaderBase& shader, const SkShaderBase::ContextRec& rec, in BitmapProcInfoContext()
30 fFlags |= SkShaderBase::kOpaqueAlpha_Flag; in BitmapProcInfoContext()
34 fFlags |= SkShaderBase::kConstInY32_Flag; in BitmapProcInfoContext()
44 typedef SkShaderBase::Context INHERITED;
51 BitmapProcShaderContext(const SkShaderBase& shader, const SkShaderBase::ContextRec& rec, in BitmapProcShaderContext()
95 SkShaderBase::Context* SkBitmapProcLegacyShader::MakeContext( in MakeContext()
96 const SkShaderBase& shader, TileMode tmx, TileMode tmy, in MakeContext()
DSkBitmapProcShader.h15 class SkBitmapProcLegacyShader : public SkShaderBase {
19 static Context* MakeContext(const SkShaderBase&, TileMode tmx, TileMode tmy,
22 typedef SkShaderBase INHERITED;
DSkImageShader.h16 class SkImageShader : public SkShaderBase {
57 friend class SkShaderBase; variable
58 typedef SkShaderBase INHERITED;
DSkPictureShader.h24 class SkPictureShader : public SkShaderBase {
64 SkShaderBase::Context* fBitmapShaderContext;
81 typedef SkShaderBase INHERITED;
DSkEmptyShader.h19 class SkEmptyShader : public SkShaderBase {
43 typedef SkShaderBase INHERITED;
DSkLightingShader.cpp41 class SkLightingShaderImpl : public SkShaderBase {
67 SkShaderBase::Context* diffuseContext, SkNormalSource::Provider*,
75 SkShaderBase::Context* fDiffuseContext;
99 typedef SkShaderBase INHERITED;
319 SkShaderBase::Context* diffuseContext, SkNormalSource::Provider* normalProvider, in LightingShaderContext()
436 diffuseShader = buf.readFlattenable<SkShaderBase>(); in CreateProc()
456 SkShaderBase::Context* SkLightingShaderImpl::onMakeContext( in onMakeContext()
459 SkShaderBase::Context *diffuseContext = nullptr; in onMakeContext()
DSkColorFilterShader.h16 class SkColorFilterShader : public SkShaderBase {
35 typedef SkShaderBase INHERITED;
DSkLocalMatrixShader.h19 class SkLocalMatrixShader final : public SkShaderBase {
62 typedef SkShaderBase INHERITED;
DSkComposeShader.h14 class SkComposeShader final : public SkShaderBase {
55 typedef SkShaderBase INHERITED;
/external/skia/src/shaders/
DSkShader.cpp32 SkShaderBase::SkShaderBase(const SkMatrix* localMatrix) in SkShaderBase() function in SkShaderBase
38 SkShaderBase::~SkShaderBase() {} in ~SkShaderBase()
40 void SkShaderBase::flatten(SkWriteBuffer& buffer) const { in flatten()
50 SkShaderBase::totalLocalMatrix(const SkMatrix* preLocalMatrix) const { in totalLocalMatrix()
60 bool SkShaderBase::computeTotalInverse(const SkMatrix& ctm, in computeTotalInverse()
66 bool SkShaderBase::asLuminanceColor(SkColor* colorPtr) const { in asLuminanceColor()
78 SkShaderBase::Context* SkShaderBase::makeContext(const ContextRec& rec, SkArenaAlloc* alloc) const { in makeContext()
94 SkShaderBase::Context::Context(const SkShaderBase& shader, const ContextRec& rec) in Context()
109 SkShaderBase::Context::~Context() {} in ~Context()
111 bool SkShaderBase::ContextRec::isLegacyCompatible(SkColorSpace* shaderColorSpace) const { in isLegacyCompatible()
[all …]
DSkShaderBase.h51 class SkShaderBase : public SkShader {
53 ~SkShaderBase() override;
108 Context(const SkShaderBase& shader, const ContextRec&);
130 const SkShaderBase& fShader;
201 static sk_sp<SkShaderBase> Deserialize(const void* data, size_t size,
203 return sk_sp<SkShaderBase>(static_cast<SkShaderBase*>(
224 SkShaderBase(const SkMatrix* localMatrix = nullptr);
262 inline SkShaderBase* as_SB(SkShader* shader) { in as_SB()
263 return static_cast<SkShaderBase*>(shader); in as_SB()
266 inline const SkShaderBase* as_SB(const SkShader* shader) { in as_SB()
[all …]
DSkBitmapProcShader.cpp15 class BitmapProcShaderContext : public SkShaderBase::Context {
17 BitmapProcShaderContext(const SkShaderBase& shader, const SkShaderBase::ContextRec& rec, in BitmapProcShaderContext()
24 fFlags |= SkShaderBase::kOpaqueAlpha_Flag; in BitmapProcShaderContext()
33 fFlags |= SkShaderBase::kConstInY32_Flag; in BitmapProcShaderContext()
73 using INHERITED = SkShaderBase::Context;
78 SkShaderBase::Context* SkBitmapProcLegacyShader::MakeContext( in MakeContext()
79 const SkShaderBase& shader, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions& sampling, in MakeContext()
DSkBitmapProcShader.h15 class SkBitmapProcLegacyShader : public SkShaderBase {
19 static Context* MakeContext(const SkShaderBase&, SkTileMode tmx, SkTileMode tmy,
23 using INHERITED = SkShaderBase;
DSkImageShader.h18 class SkImageShader : public SkShaderBase {
66 friend class SkShaderBase; variable
67 using INHERITED = SkShaderBase;
DSkPictureShader.h25 class SkPictureShader : public SkShaderBase {
65 SkShaderBase::Context* fBitmapShaderContext;
76 using INHERITED = SkShaderBase;
DSkEmptyShader.h19 class SkEmptyShader : public SkShaderBase {
47 using INHERITED = SkShaderBase;
DSkColorFilterShader.h16 class SkColorFilterShader : public SkShaderBase {
39 using INHERITED = SkShaderBase;
DSkLocalMatrixShader.cpp43 SkShaderBase::Context* SkLocalMatrixShader::onMakeContext( in onMakeContext()
123 class SkCTMShader final : public SkShaderBase {
176 using INHERITED = SkShaderBase;
208 sk_sp<SkShader> SkShaderBase::makeWithCTM(const SkMatrix& postM) const { in makeWithCTM()
DSkComposeShader.h14 class SkShader_Blend final : public SkShaderBase {
41 using INHERITED = SkShaderBase;
/external/skqp/src/core/
DSkNormalMapSource.h23 SkNormalSource::Provider* asProvider(const SkShaderBase::ContextRec& rec,
29 bool computeNormTotalInverse(const SkShaderBase::ContextRec& rec,
37 Provider(const SkNormalMapSourceImpl& source, SkShaderBase::Context* mapContext); in SK_FLATTENABLE_HOOKS()
43 SkShaderBase::Context* fMapContext; in SK_FLATTENABLE_HOOKS()
DSkNormalMapSource.cpp138 SkShaderBase::Context* mapContext) in Provider()
142 SkNormalSource::Provider* SkNormalMapSourceImpl::asProvider(const SkShaderBase::ContextRec &rec, in asProvider()
152 SkShaderBase::ContextRec overrideRec(overridePaint, *(rec.fMatrix), rec.fLocalMatrix, in asProvider()
163 bool SkNormalMapSourceImpl::computeNormTotalInverse(const SkShaderBase::ContextRec& rec, in computeNormTotalInverse()
227 sk_sp<SkShader> mapShader = buf.readFlattenable<SkShaderBase>(); in CreateProc()
DSkCoreBlitters.h37 SkShaderBase::Context* shaderContext);
43 SkShaderBase::Context* fShaderContext;
123 SkShaderBase::Context* shaderContext);
150 SkRGB565_Shader_Blitter(const SkPixmap& device, const SkPaint&, SkShaderBase::Context*);
/external/skia/src/core/
DSkCoreBlitters.h37 SkShaderBase::Context* shaderContext);
43 SkShaderBase::Context* fShaderContext;
123 SkShaderBase::Context* shaderContext);
150 SkRGB565_Shader_Blitter(const SkPixmap& device, const SkPaint&, SkShaderBase::Context*);

123