Index: src/gpu/GrBatchFlushState.h |
diff --git a/src/gpu/GrBatchFlushState.h b/src/gpu/GrBatchFlushState.h |
index 0b2e2bd239450eb1584a69142b391a8c531cd43f..d2d9a4b488908bb0d5f5a24910e1b5826e7490ec 100644 |
--- a/src/gpu/GrBatchFlushState.h |
+++ b/src/gpu/GrBatchFlushState.h |
@@ -11,6 +11,7 @@ |
#include "GrBufferAllocPool.h" |
#include "batches/GrVertexBatch.h" |
+class GrGpuCommandBuffer; |
class GrResourceProvider; |
/** Tracks the state across all the GrBatches in a GrDrawTarget flush. */ |
@@ -84,6 +85,9 @@ public: |
void putBackVertexSpace(size_t sizeInBytes) { fVertexPool.putBack(sizeInBytes); } |
+ GrGpuCommandBuffer* commandBuffer() { return fCommandBuffer; } |
+ void setCommandBuffer(GrGpuCommandBuffer* buffer) { fCommandBuffer = buffer; } |
+ |
GrGpu* gpu() { return fGpu; } |
void reset() { |
@@ -97,6 +101,8 @@ private: |
GrResourceProvider* fResourceProvider; |
+ GrGpuCommandBuffer* fCommandBuffer; |
+ |
GrVertexBufferAllocPool fVertexPool; |
GrIndexBufferAllocPool fIndexPool; |