Index: src/gpu/GrCommandBuilder.h |
diff --git a/src/gpu/GrCommandBuilder.h b/src/gpu/GrCommandBuilder.h |
index 95fd8ec201a867e57bd0cce55d9a813e59d62860..004fc790dc2d96aba1e4a97975822555ddc72250 100644 |
--- a/src/gpu/GrCommandBuilder.h |
+++ b/src/gpu/GrCommandBuilder.h |
@@ -10,6 +10,8 @@ |
#include "GrTargetCommands.h" |
+class GrGpu; |
+class GrResourceProvider; |
class GrBufferedDrawTarget; |
class GrCommandBuilder : ::SkNoncopyable { |
@@ -22,7 +24,7 @@ public: |
virtual ~GrCommandBuilder() {} |
void reset() { fCommands.reset(); } |
- void flush(GrBufferedDrawTarget* bufferedDrawTarget) { fCommands.flush(bufferedDrawTarget); } |
+ void flush(GrGpu* gpu, GrResourceProvider* rp) { fCommands.flush(gpu, rp); } |
virtual Cmd* recordClearStencilClip(const SkIRect& rect, |
bool insideClip, |
@@ -66,11 +68,9 @@ protected: |
typedef GrTargetCommands::ClearStencilClip ClearStencilClip; |
typedef GrTargetCommands::CopySurface CopySurface; |
- GrCommandBuilder(GrGpu* gpu) : fCommands(gpu) {} |
+ GrCommandBuilder() {} |
GrTargetCommands::CmdBuffer* cmdBuffer() { return fCommands.cmdBuffer(); } |
- GrBatchTarget* batchTarget() { return fCommands.batchTarget(); } |
- |
private: |
GrTargetCommands fCommands; |