Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: src/gpu/GrDrawTarget.h

Issue 1293583002: Introduce GrBatch subclasses GrDrawBatch and GrVertexBatch to prepare for non-drawing batches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove duplicated fields in GrVertexBatch Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawTarget.h
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index c7a39e3bd3688720db68a6cf8ac4d981ede4f6f5..d552d39008b680d44f68b47c1ed1629611a62aa9 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*,
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698