Lines Matching full:clamp
101 // Bicubic can send colors out of range, so clamp to get them back in (source) gamut. in emitCode()
102 // The kind of clamp we have to do depends on the alpha type. in emitCode()
104 case Clamp::kUnpremul: in emitCode()
107 case Clamp::kPremul: in emitCode()
132 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in Make() local
134 new GrBicubicEffect(std::move(fp), kernel, direction, clamp))); in Make()
148 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in Make() local
150 new GrBicubicEffect(std::move(fp), kernel, direction, clamp))); in Make()
167 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in MakeSubset() local
169 new GrBicubicEffect(std::move(fp), kernel, direction, clamp))); in MakeSubset()
195 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in MakeSubset() local
197 new GrBicubicEffect(std::move(fp), kernel, direction, clamp))); in MakeSubset()
205 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in Make() local
207 new GrBicubicEffect(std::move(fp), kernel, direction, clamp))); in Make()
213 Clamp clamp) in GrBicubicEffect() argument
217 , fClamp(clamp) { in GrBicubicEffect()