Index: src/gpu/GrBatchTarget.h |
diff --git a/src/gpu/GrBatchTarget.h b/src/gpu/GrBatchTarget.h |
index 97cd2ed727b9252a24655e7a654f9866e8d2a131..9bd6b9409c41c2355e4246e42527e80b5fe1c053 100644 |
--- a/src/gpu/GrBatchTarget.h |
+++ b/src/gpu/GrBatchTarget.h |
@@ -121,7 +121,9 @@ |
GrVertexBufferAllocPool* vertexPool() { return fVertexPool; } |
GrIndexBufferAllocPool* indexPool() { return fIndexPool; } |
- GrResourceProvider* resourceProvider() const { return fGpu->getContext()->resourceProvider(); } |
+ const static int kVertsPerRect = 4; |
+ const static int kIndicesPerRect = 6; |
+ const GrIndexBuffer* quadIndexBuffer() const { return fGpu->getQuadIndexBuffer(); } |
// A helper for draws which overallocate and then return data to the pool |
void putBackIndices(size_t indices) { fIndexPool->putBack(indices * sizeof(uint16_t)); } |