aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawTarget.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-08-13 13:34:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-13 13:34:48 -0700
commitabd30f54b7ff1704a8930c4307ea242d09425d02 (patch)
tree08eb5fdaa2fbe55f2e763a1d3c05054896919b68 /src/gpu/GrDrawTarget.h
parent8f34372f7e97482e5e61ab298b7edaa008ba2f4c (diff)
Introduce GrBatch subclasses GrDrawBatch and GrVertexBatch to prepare for non-drawing batches
Diffstat (limited to 'src/gpu/GrDrawTarget.h')
-rw-r--r--src/gpu/GrDrawTarget.h7
1 files changed, 4 insertions, 3 deletions
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*,