From abd30f54b7ff1704a8930c4307ea242d09425d02 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Thu, 13 Aug 2015 13:34:48 -0700 Subject: Introduce GrBatch subclasses GrDrawBatch and GrVertexBatch to prepare for non-drawing batches Review URL: https://codereview.chromium.org/1293583002 --- src/gpu/GrDrawTarget.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gpu/GrDrawTarget.h') diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h index c7a39e3bd3..d552d39008 100644 --- a/src/gpu/GrDrawTarget.h +++ b/src/gpu/GrDrawTarget.h @@ -34,6 +34,7 @@ class GrClip; class GrCaps; class GrPath; class GrPathRange; +class GrDrawBatch; class GrDrawTarget : public SkRefCnt { public: @@ -66,7 +67,7 @@ public: */ const GrCaps* caps() const { return fCaps; } - void drawBatch(const GrPipelineBuilder&, GrBatch*); + void drawBatch(const GrPipelineBuilder&, GrDrawBatch*); /** * Draws path into the stencil buffer. The fill must be either even/odd or @@ -206,7 +207,7 @@ public: const SkRect* devBounds, GrDrawTarget* target); PipelineInfo(const GrPipelineBuilder* pipelineBuilder, const GrScissorState* scissor, - const GrBatch* batch, const SkRect* devBounds, + const GrDrawBatch* batch, const SkRect* devBounds, GrDrawTarget* target); bool valid() const { return SkToBool(fArgs.fPipelineBuilder); } @@ -241,7 +242,7 @@ private: virtual void onFlush() = 0; - virtual void onDrawBatch(GrBatch*) = 0; + virtual void onDrawBatch(GrDrawBatch*) = 0; virtual void onStencilPath(const GrPipelineBuilder&, const GrPathProcessor*, const GrPath*, -- cgit v1.2.3