Index: src/gpu/GrBatchTarget.h |
diff --git a/src/gpu/GrBatchTarget.h b/src/gpu/GrBatchTarget.h |
index 80a8b9bad320e9da4b30091e779212bf5a54c883..19cfb09cb7278633457991910c1c3a8633ba0282 100644 |
--- a/src/gpu/GrBatchTarget.h |
+++ b/src/gpu/GrBatchTarget.h |
@@ -115,26 +115,26 @@ public: |
const GrIndexBuffer** buffer, int* startIndex); |
// A helper for draws which overallocate and then return data to the pool |
- void putBackIndices(size_t indices) { fIndexPool->putBack(indices * sizeof(uint16_t)); } |
+ void putBackIndices(size_t indices) { fIndexPool.putBack(indices * sizeof(uint16_t)); } |
void putBackVertices(size_t vertices, size_t vertexStride) { |
- fVertexPool->putBack(vertices * vertexStride); |
+ fVertexPool.putBack(vertices * vertexStride); |
} |
void reset() { |
- fVertexPool->reset(); |
- fIndexPool->reset(); |
+ fVertexPool.reset(); |
+ fIndexPool.reset(); |
} |
private: |
void unmapVertexAndIndexBuffers() { |
- fVertexPool->unmap(); |
- fIndexPool->unmap(); |
+ fVertexPool.unmap(); |
+ fIndexPool.unmap(); |
} |
GrGpu* fGpu; |
- SkAutoTDelete<GrVertexBufferAllocPool> fVertexPool; |
- SkAutoTDelete<GrIndexBufferAllocPool> fIndexPool; |
+ GrVertexBufferAllocPool fVertexPool; |
+ GrIndexBufferAllocPool fIndexPool; |
typedef void* TBufferAlign; // This wouldn't be enough align if a command used long double. |