Lines Matching refs:buffer

30  * At creation time a minimum per-buffer size can be specified. Additionally,
113 * Returns a block of memory to hold data. A buffer designated to hold the
114 * data is given to the caller. The buffer may or may not be locked. The
122 * buffer at the offset indicated by offset. Until that time it may be
123 * in temporary storage and/or the buffer may be locked.
126 * @param alignment alignment constraint from start of buffer
127 * @param buffer returns the buffer that will hold the data.
128 * @param offset returns the offset into buffer of the data.
133 const GrGeometryBuffer** buffer,
138 * buffer without spilling to another buffer. If the pool has been reset, or
139 * the previous makeSpace completely exhausted a buffer then the returned
140 * size will be the size of the next available preallocated buffer, or zero
141 * if no preallocated buffer remains available. It is assumed that items
142 * should be itemSize-aligned from the start of a buffer.
144 * @return the number of items that would fit in the current buffer.
163 void flushCpuData(GrGeometryBuffer* buffer, size_t flushSize);
213 * Returns a block of memory to hold vertices. A buffer designated to hold
214 * the vertices given to the caller. The buffer may or may not be locked.
222 * the buffer at the offset indicated by startVertex. Until that time they
223 * may be in temporary storage and/or the buffer may be locked.
227 * @param buffer returns the vertex buffer that will hold the
229 * @param startVertex returns the offset into buffer of the first vertex.
235 const GrVertexBuffer** buffer,
244 const GrVertexBuffer** buffer,
251 * would fit in the next available preallocated buffer. If any makeSpace
255 * @return the number of vertices that would fit in the current buffer.
260 * Gets the number of vertices that can fit in a preallocated vertex buffer.
301 * Returns a block of memory to hold indices. A buffer designated to hold
302 * the indices is given to the caller. The buffer may or may not be locked.
310 * buffer at the offset indicated by startIndex. Until that time they may be
311 * in temporary storage and/or the buffer may be locked.
314 * @param buffer returns the index buffer that will hold the indices.
315 * @param startIndex returns the offset into buffer of the first index.
319 const GrIndexBuffer** buffer,
327 const GrIndexBuffer** buffer,
334 * would fit in the next available preallocated buffer. If any makeSpace
340 * Gets the number of indices that can fit in a preallocated index buffer.