Lines Matching refs:count
21 int count = src.count();
22 fCount = SkToU16(count);
24 sk_malloc_throw(count * sizeof(SkPMColor)));
25 memcpy(fColors, src.fColors, count * sizeof(SkPMColor));
31 SkColorTable::SkColorTable(const SkPMColor colors[], int count, SkAlphaType at)
34 SkASSERT(0 == count || colors);
36 if (count < 0) {
37 count = 0;
38 } else if (count > 256) {
39 count = 256;
42 fCount = SkToU16(count);
44 sk_malloc_throw(count * sizeof(SkPMColor)));
46 memcpy(fColors, colors, count * sizeof(SkPMColor));
69 int count) {
70 while (--count >= 0) {