Lines Matching refs:gBuffers
50 static SkTDArray<GrBufferObj*> gBuffers; // slot 0 is reserved for head of free list
55 GrBufferObj* buffer = gBuffers[id];
61 if (0 == gBuffers.count()) {
63 *gBuffers.append() = NULL;
69 if (NULL == gBuffers[0]) {
71 id = gBuffers.count();
73 gBuffers.append(1, &buffer);
76 id = SkTCast<GrGLuint>(gBuffers[0]);
77 gBuffers[0] = gBuffers[id];
80 gBuffers[id] = buffer;
87 SkASSERT(gBuffers.count() > 0);
93 gBuffers[id] = gBuffers[0];
94 gBuffers[0] = SkTCast<GrBufferObj*>((const void*)(intptr_t)id);