diff options
author | 2015-05-05 11:55:39 -0700 | |
---|---|---|
committer | 2015-05-05 11:55:39 -0700 | |
commit | af242958a5daced0956d7bb3277716b8f0aeaf4b (patch) | |
tree | d937f73642dcd8734d50f5910ff76cc67e2d5d17 /src/gpu/GrCommandBuilder.h | |
parent | a16e69ec6ccbaf81671f66ee77ca3b0c07100041 (diff) |
create GrInOrderCommandBuilder
BUG=skia:
Review URL: https://codereview.chromium.org/1118403003
Diffstat (limited to 'src/gpu/GrCommandBuilder.h')
-rw-r--r-- | src/gpu/GrCommandBuilder.h | 11 |
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; }; |