Index: src/gpu/GrFlushToGpuDrawTarget.h |
diff --git a/src/gpu/GrFlushToGpuDrawTarget.h b/src/gpu/GrFlushToGpuDrawTarget.h |
index 2383c623d089a6f3e776de4f35fef9c8b6151f3a..12881563b254986a351bc2d04c5174e240f649ee 100644 |
--- a/src/gpu/GrFlushToGpuDrawTarget.h |
+++ b/src/gpu/GrFlushToGpuDrawTarget.h |
@@ -46,7 +46,10 @@ protected: |
GrGpu* getGpu() { return fGpu; } |
const GrGpu* getGpu() const{ return fGpu; } |
-private: |
+ GrVertexBufferAllocPool* getVertexAllocPool() { return fVertexPool; } |
+ GrIndexBufferAllocPool* getIndexAllocPool() { return fIndexPool; } |
+ |
+ // TODO all of this goes away when batch is everywhere |
enum { |
kGeoPoolStatePreAllocCnt = 4, |
}; |
@@ -64,7 +67,9 @@ private: |
}; |
typedef SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> GeoPoolStateStack; |
+ const GeoPoolStateStack& getGeoPoolStateStack() const { return fGeoPoolStateStack; } |
+private: |
virtual void onReset() = 0; |
virtual void onFlush() = 0; |