Lines Matching defs:count
34 // NOTE: signature takes raw pointers to the color/pos arrays and a count to make it easy for
37 const SkScalar* positions, int count, bool premul, const GrFPArgs& args) {
53 gCache.getGradient(colors, positions, count, colorType, alphaType, &bitmap);
169 // count checks are constant expressions, which are then optimized to the minimal number
170 // of branches for the specific interval count.
379 const SkPMColor4f* colors, const SkScalar* positions, int count) {
380 if (count > kMaxUnrolledColorCount) {
388 int intervalCount = build_intervals(count, colors, positions,
402 int count) {
403 if (count > kMaxLoopingColorCount) {
411 int intervalCount = build_intervals(count, colors, positions,
435 int count,
446 bool topHardStop = SkScalarNearlyEqual(positions[count - 2], positions[count - 1]);
451 count--;
454 count--;
459 if (count == 2) {
474 for (int i = 0; i < count - 1; i++) {
487 if (count == 3) {
494 if (count == 4 && SkScalarNearlyEqual(positions[1], positions[2])) {
506 if ((count <= binaryColorizerLimit) && !intervalsExceedPrecisionLimit()) {
515 ? make_looping_binary_colorizer(colors, positions, count)
516 : make_unrolled_binary_colorizer(colors, positions, count);
524 return make_textured_colorizer(colors, positions, count, premul, args);
989 // Set color count to min of 2 so that we don't trigger the const color optimization and make