Lines Matching defs:count
76 static bool validate_array(SkReadBuffer& buffer, size_t count, SkSTArray<N, T, MEM_MOVE>* array) {
77 if (!buffer.validateCanReadN<T>(count)) {
81 array->resize_back(count);
186 int count = desc.fCount + needsLast;
190 for (int i = startIndex; i < count; i++) {
674 static bool valid_grad(const SkColor4f colors[], const SkScalar pos[], int count,
676 return nullptr != colors && count >= 1 && (unsigned)tileMode < kSkTileModeCount;
777 #define EXPAND_1_COLOR(count) \
780 if (1 == count) { \
784 count = 2; \
789 ColorStopOptimizer(const SkColor4f* colors, const SkScalar* pos, int count, SkTileMode mode)
792 , fCount(count) {
794 if (!pos || count != 3) {
829 ColorConverter(const SkColor* colors, int count) {
831 for (int i = 0; i < count; ++i) {