Lines Matching refs:indices
262 static inline void fill_indices(uint16_t* indices, int quadCount) { in fill_indices() argument
264 indices[6 * i + 0] = 4 * i + 0; in fill_indices()
265 indices[6 * i + 1] = 4 * i + 1; in fill_indices()
266 indices[6 * i + 2] = 4 * i + 2; in fill_indices()
267 indices[6 * i + 3] = 4 * i + 0; in fill_indices()
268 indices[6 * i + 4] = 4 * i + 2; in fill_indices()
269 indices[6 * i + 5] = 4 * i + 3; in fill_indices()
279 uint16_t* indices = (uint16_t*)fQuadIndexBuffer->lock(); in getQuadIndexBuffer() local
280 if (NULL != indices) { in getQuadIndexBuffer()
281 fill_indices(indices, MAX_QUADS); in getQuadIndexBuffer()
284 indices = (uint16_t*)GrMalloc(SIZE); in getQuadIndexBuffer()
285 fill_indices(indices, MAX_QUADS); in getQuadIndexBuffer()
286 if (!fQuadIndexBuffer->updateData(indices, SIZE)) { in getQuadIndexBuffer()
291 GrFree(indices); in getQuadIndexBuffer()
453 bool GrGpu::onReserveIndexSpace(int indexCount, void** indices) { in onReserveIndexSpace() argument
457 GrAssert(NULL != indices); in onReserveIndexSpace()
461 *indices = fIndexPool->makeSpace(indexCount, in onReserveIndexSpace()
464 if (NULL == *indices) { in onReserveIndexSpace()