Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: src/gpu/GrBatchFlushState.h

Issue 2078483002: Start using GrGpuCommandBuffer in GrDrawTarget. (Closed) Base URL: https://skia.googlesource.com/skia.git@memoryWAR
Patch Set: remove errant lines Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrBatchFlushState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrBatchFlushState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698