Home | History | Annotate | Download | only in core

Lines Matching defs:count

12 SkColorTable::SkColorTable(const SkPMColor colors[], int count) {
13 SkASSERT(0 == count || colors);
14 SkASSERT(count >= 0 && count <= 256);
16 fCount = count;
17 fColors = reinterpret_cast<SkPMColor*>(sk_malloc_throw(count * sizeof(SkPMColor)));
19 memcpy(fColors, colors, count * sizeof(SkPMColor));
27 const int count = buffer.getArrayCount();
28 if (count < 0 || count > 256) {
31 buffer.skip(count * sizeof(SkPMColor));