| Index: src/gpu/GrBufferAllocPool.cpp
|
| diff --git a/src/gpu/GrBufferAllocPool.cpp b/src/gpu/GrBufferAllocPool.cpp
|
| index 226f45196e4afdb002ac989c4940534ad9306317..9fafcb35ac439a04581460d357e76cfca0904919 100644
|
| --- a/src/gpu/GrBufferAllocPool.cpp
|
| +++ b/src/gpu/GrBufferAllocPool.cpp
|
| @@ -419,22 +419,6 @@ void* GrVertexBufferAllocPool::makeSpace(size_t vertexSize,
|
| return ptr;
|
| }
|
|
|
| -bool GrVertexBufferAllocPool::appendVertices(size_t vertexSize,
|
| - int vertexCount,
|
| - const void* vertices,
|
| - const GrVertexBuffer** buffer,
|
| - int* startVertex) {
|
| - void* space = makeSpace(vertexSize, vertexCount, buffer, startVertex);
|
| - if (space) {
|
| - memcpy(space,
|
| - vertices,
|
| - vertexSize * vertexCount);
|
| - return true;
|
| - } else {
|
| - return false;
|
| - }
|
| -}
|
| -
|
| int GrVertexBufferAllocPool::preallocatedBufferVertices(size_t vertexSize) const {
|
| return static_cast<int>(INHERITED::preallocatedBufferSize() / vertexSize);
|
| }
|
| @@ -477,19 +461,6 @@ void* GrIndexBufferAllocPool::makeSpace(int indexCount,
|
| return ptr;
|
| }
|
|
|
| -bool GrIndexBufferAllocPool::appendIndices(int indexCount,
|
| - const void* indices,
|
| - const GrIndexBuffer** buffer,
|
| - int* startIndex) {
|
| - void* space = makeSpace(indexCount, buffer, startIndex);
|
| - if (space) {
|
| - memcpy(space, indices, sizeof(uint16_t) * indexCount);
|
| - return true;
|
| - } else {
|
| - return false;
|
| - }
|
| -}
|
| -
|
| int GrIndexBufferAllocPool::preallocatedBufferIndices() const {
|
| return static_cast<int>(INHERITED::preallocatedBufferSize() / sizeof(uint16_t));
|
| }
|
|
|