Lines Matching defs:shader
31 IntervalIterator(const SkGradientShaderBase& shader, bool reverse)
32 : fShader(shader)
34 , fBegin(reverse ? shader.fColorCount - 1 : 0)
36 SkASSERT(shader.fColorCount > 0);
98 void addMirrorIntervals(const SkGradientShaderBase& shader,
103 const IntervalIterator iter(shader, reverse);
140 void Sk4fGradientIntervalBuffer::init(const SkGradientShaderBase& shader, SkColorSpace* dstCS,
184 const auto count = shader.fColorCount;
199 SkColor4fXformer xformedColors(shader.fOrigColors4f, count, shader.fColorSpace.get(), dstCS);
210 addMirrorIntervals(shader, xformedColors.fColors, componentScale, premulColors, false,
214 const IntervalIterator iter(shader, reverse);
232 addMirrorIntervals(shader, xformedColors.fColors, componentScale, premulColors, true,
290 GradientShaderBase4fContext::GradientShaderBase4fContext(const SkGradientShaderBase& shader,
292 : INHERITED(shader, rec)
297 fDstToPos.setConcat(shader.fPtsToUnit, inverse);
301 if (shader.fColorsAreOpaque && this->getPaintAlpha() == SK_AlphaOPAQUE) {
306 (shader.fGradFlags & SkGradientShader::kInterpolateColorsInPremul_Flag)
307 || shader.fColorsAreOpaque;