Home
last modified time | relevance | path

Searched refs:SkGradientShaderBase (Results 1 – 12 of 12) sorted by relevance

/external/skia/src/effects/gradients/
DSkGradientShader.cpp15 void SkGradientShaderBase::Descriptor::flatten(SkWriteBuffer& buffer) const { in flatten()
33 bool SkGradientShaderBase::DescriptorScope::unflatten(SkReadBuffer& buffer) { in unflatten()
70 SkGradientShaderBase::SkGradientShaderBase(const Descriptor& desc, const SkMatrix& ptsToUnit) in SkGradientShaderBase() function in SkGradientShaderBase
204 SkGradientShaderBase::~SkGradientShaderBase() { in ~SkGradientShaderBase()
210 void SkGradientShaderBase::initCommon() { in initCommon()
218 void SkGradientShaderBase::flatten(SkWriteBuffer& buffer) const { in flatten()
231 SkGradientShaderBase::GpuColorType SkGradientShaderBase::getGpuColorType(SkColor colors[3]) const { in getGpuColorType()
248 void SkGradientShaderBase::FlipGradientColors(SkColor* colorDst, Rec* recDst, in FlipGradientColors()
268 bool SkGradientShaderBase::isOpaque() const { in isOpaque()
276 bool SkGradientShaderBase::onAsLuminanceColor(SkColor* lum) const { in onAsLuminanceColor()
[all …]
DSkGradientShaderPriv.h83 class SkGradientShaderBase : public SkShader {
123 SkGradientShaderBase(const Descriptor& desc, const SkMatrix& ptsToUnit);
124 virtual ~SkGradientShaderBase();
129 GradientShaderCache(U8CPU alpha, bool dither, const SkGradientShaderBase& shader);
152 const SkGradientShaderBase& fShader;
168 GradientShaderBaseContext(const SkGradientShaderBase& shader, const ContextRec&);
226 SkGradientShaderBase(SkReadBuffer& );
285 return (x | y) * SkGradientShaderBase::kDitherStride32; in init_dither_toggle()
289 return toggle ^ SkGradientShaderBase::kDitherStride32; in next_dither_toggle()
293 return ((x ^ y) & 1) * SkGradientShaderBase::kDitherStride16; in init_dither_toggle16()
[all …]
DSkSweepGradient.h14 class SkSweepGradient : public SkGradientShaderBase {
20 class SweepGradientContext : public SkGradientShaderBase::GradientShaderBaseContext {
27 typedef SkGradientShaderBase::GradientShaderBaseContext INHERITED;
50 typedef SkGradientShaderBase INHERITED;
DSkRadialGradient.h14 class SkRadialGradient : public SkGradientShaderBase {
20 class RadialGradientContext : public SkGradientShaderBase::GradientShaderBaseContext {
27 typedef SkGradientShaderBase::GradientShaderBaseContext INHERITED;
51 typedef SkGradientShaderBase INHERITED;
DSkLinearGradient.h27 class SkLinearGradient : public SkGradientShaderBase {
38 class LinearGradientContext : public SkGradientShaderBase::GradientShaderBaseContext {
57 typedef SkGradientShaderBase::GradientShaderBaseContext INHERITED;
80 typedef SkGradientShaderBase INHERITED;
DSkTwoPointConicalGradient.h41 class SkTwoPointConicalGradient : public SkGradientShaderBase {
51 class TwoPointConicalGradientContext : public SkGradientShaderBase::GradientShaderBaseContext {
59 typedef SkGradientShaderBase::GradientShaderBaseContext INHERITED;
95 typedef SkGradientShaderBase INHERITED;
DSk4fGradientBase.cpp30 SkGradientShaderBase::GradientShaderBase4fContext::
47 SkGradientShaderBase::GradientShaderBase4fContext::
57 bool SkGradientShaderBase::GradientShaderBase4fContext::
62 SkGradientShaderBase::
63 GradientShaderBase4fContext::GradientShaderBase4fContext(const SkGradientShaderBase& shader, in GradientShaderBase4fContext()
239 const SkGradientShaderBase::GradientShaderBase4fContext::Interval*
240 SkGradientShaderBase::
DSk4fGradientBase.h19 class SkGradientShaderBase::
22 GradientShaderBase4fContext(const SkGradientShaderBase&,
DSkLinearGradient.cpp68 : SkGradientShaderBase(desc, pts_to_unit_matrix(pts)) in SkLinearGradient()
181 unsigned fi = SkGradFixedToFixed(fx) >> SkGradientShaderBase::kCache32Shift; \
205 unsigned fi = fullIndex >> SkGradientShaderBase::kCache32Shift; in shadeSpan_linear_vertical_lerp()
206 unsigned remainder = fullIndex & ((1 << SkGradientShaderBase::kCache32Shift) - 1); in shadeSpan_linear_vertical_lerp()
210 if (fi < SkGradientShaderBase::kCache32Count - 1) { in shadeSpan_linear_vertical_lerp()
214 index0 ^= SkGradientShaderBase::kDitherStride32; in shadeSpan_linear_vertical_lerp()
215 index1 ^= SkGradientShaderBase::kDitherStride32; in shadeSpan_linear_vertical_lerp()
225 range.init(fx, dx, count, 0, SkGradientShaderBase::kCache32Count - 1); in shadeSpan_linear_clamp()
DSkTwoPointConicalGradient.cpp149 (index >> SkGradientShaderBase::kCache32Shift)]; in twopoint_clamp()
166 (index >> SkGradientShaderBase::kCache32Shift)]; in twopoint_repeat()
183 (index >> SkGradientShaderBase::kCache32Shift)]; in twopoint_mirror()
195 : SkGradientShaderBase(desc, SkMatrix::I()) in SkTwoPointConicalGradient()
DSkRadialGradient.cpp38 : SkGradientShaderBase(desc, rad_to_unit_matrix(center, radius)) in SkRadialGradient()
108 unsigned fi = SkGradientShaderBase::kCache32Count - 1; in shadeSpan_radial_clamp2()
169 *dstC++ = cache[toggle + (fi >> SkGradientShaderBase::kCache32Shift)]; in shadeSpan_radial()
232 *dstC++ = cache[fi >> SkGradientShaderBase::kCache32Shift]; in shadeSpan()
DSkSweepGradient.cpp18 : SkGradientShaderBase(desc, translate(-cx, -cy)) in SkSweepGradient()