Searched refs:maxIndices (Results 1 – 2 of 2) sorted by relevance
246 int64_t maxIndices = DEFAULT_BUFFER_SIZE; in onPrepareDraws() local248 uint16_t* indices = (uint16_t*) sk_malloc_throw(maxIndices * sizeof(uint16_t)); in onPrepareDraws()277 if (indexCount + currentIndices > maxIndices) { in onPrepareDraws()278 maxIndices = SkTMax(indexCount + currentIndices, maxIndices * 2); in onPrepareDraws()279 if (maxIndices * sizeof(uint16_t) > SK_MaxS32) { in onPrepareDraws()284 indices = (uint16_t*) sk_realloc_throw(indices, maxIndices * sizeof(uint16_t)); in onPrepareDraws()