aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrCommandBuilder.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-05-05 11:55:39 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-05 11:55:39 -0700
commitaf242958a5daced0956d7bb3277716b8f0aeaf4b (patch)
treed937f73642dcd8734d50f5910ff76cc67e2d5d17 /src/gpu/GrCommandBuilder.h
parenta16e69ec6ccbaf81671f66ee77ca3b0c07100041 (diff)
create GrInOrderCommandBuilder
Diffstat (limited to 'src/gpu/GrCommandBuilder.h')
-rw-r--r--src/gpu/GrCommandBuilder.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gpu/GrCommandBuilder.h b/src/gpu/GrCommandBuilder.h
index 165c2c2035..05c29fb014 100644
--- a/src/gpu/GrCommandBuilder.h
+++ b/src/gpu/GrCommandBuilder.h
@@ -34,16 +34,16 @@ public:
bool insideClip,
GrRenderTarget* renderTarget);
virtual Cmd* recordDiscard(GrRenderTarget*);
- virtual Cmd* recordDrawBatch(State*, GrBatch*);
+ virtual Cmd* recordDrawBatch(State*, GrBatch*) = 0;
virtual Cmd* recordStencilPath(const GrPipelineBuilder&,
const GrPathProcessor*,
const GrPath*,
const GrScissorState&,
- const GrStencilSettings&);
+ const GrStencilSettings&) = 0;
virtual Cmd* recordDrawPath(State*,
const GrPathProcessor*,
const GrPath*,
- const GrStencilSettings&);
+ const GrStencilSettings&) = 0;
virtual Cmd* recordDrawPaths(State*,
GrInOrderDrawBuffer*,
const GrPathProcessor*,
@@ -54,7 +54,7 @@ public:
GrDrawTarget::PathTransformType ,
int,
const GrStencilSettings&,
- const GrDrawTarget::PipelineInfo&);
+ const GrDrawTarget::PipelineInfo&) = 0;
virtual Cmd* recordClear(const SkIRect* rect,
GrColor,
bool canIgnoreRect,
@@ -65,7 +65,7 @@ public:
const SkIPoint& dstPoint);
virtual Cmd* recordXferBarrierIfNecessary(const GrPipeline&, const GrDrawTargetCaps&);
-private:
+protected:
typedef GrTargetCommands::DrawBatch DrawBatch;
typedef GrTargetCommands::StencilPath StencilPath;
typedef GrTargetCommands::DrawPath DrawPath;
@@ -78,6 +78,7 @@ private:
GrTargetCommands::CmdBuffer* cmdBuffer() { return fCommands.cmdBuffer(); }
GrBatchTarget* batchTarget() { return fCommands.batchTarget(); }
+private:
GrTargetCommands fCommands;
};