Lines Matching defs:count
101 SkASSERT(fIntervals->count() > 0);
149 LinearGradient4fContext::shadeSpan(int x, int y, SkPMColor dst[], int count) {
150 SkASSERT(count > 0);
177 this->shadePremulSpan<ApplyPremul::False>(x, y, dst, count, bias0, bias1);
183 this->shadePremulSpan<ApplyPremul::True >(x, y, dst, count, bias0, bias1);
189 LinearGradient4fContext::shadePremulSpan(int x, int y, SkPMColor dst[], int count,
197 this->shadeSpanInternal<premul, SkTileMode::kClamp >(x, y, dst, count, bias0, bias1);
200 this->shadeSpanInternal<premul, SkTileMode::kRepeat>(x, y, dst, count, bias0, bias1);
203 this->shadeSpanInternal<premul, SkTileMode::kMirror>(x, y, dst, count, bias0, bias1);
210 LinearGradient4fContext::shadeSpanInternal(int x, int y, SkPMColor dst[], int count,
224 SkScalarNearlyZero(dx * count));
228 while (count > 0) {
229 // What we really want here is SkTPin(advance, 1, count)
231 const int n = std::min(SkScalarTruncToInt(proc.currentAdvance() + 1), count);
235 // a) consume all remaining count in one swoop
238 || (n == count && proc.currentRampIsZero()));
248 count -= n;