Index: src/gpu/GrBatchTarget.h |
diff --git a/src/gpu/GrBatchTarget.h b/src/gpu/GrBatchTarget.h |
index 82dad45c22dc18e8588e4b6846968770b99cca7e..ec08aea5bf4e61de62c60f734d02e4c6125a0f41 100644 |
--- a/src/gpu/GrBatchTarget.h |
+++ b/src/gpu/GrBatchTarget.h |
@@ -17,6 +17,9 @@ |
* that render their batch. |
*/ |
+class GrIndexBufferAllocPool; |
+class GrVertexBufferAllocPool; |
+ |
class GrBatchTarget : public SkNoncopyable { |
public: |
GrBatchTarget(GrGpu* gpu, |
@@ -43,6 +46,8 @@ public: |
return &fFlushBuffer.back().fBatchTracker; |
} |
+ const GrDrawTargetCaps& caps() const { return *fGpu->caps(); } |
+ |
GrVertexBufferAllocPool* vertexPool() { return fVertexPool; } |
GrIndexBufferAllocPool* indexPool() { return fIndexPool; } |