aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-05-05 09:51:38 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-05 09:51:38 -0700
commitcb8979d088a66ebaf41f10ba6f5c830615aa0e03 (patch)
tree1493797ba71ecb94c3d7ebfb78e4fc6222dce778 /src/gpu/GrGpu.h
parente46760e8b2b2fc4a11a43a3b7cc9da7166c83c46 (diff)
Move DrawInfo out from GrDrawTarget and rename to GrVertices.
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r--src/gpu/GrGpu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index 3903af6344..d89d371288 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -23,6 +23,7 @@ class GrPipeline;
class GrPrimitiveProcessor;
class GrStencilAttachment;
class GrVertexBufferAllocPool;
+class GrVertices;
class GrGpu : public SkRefCnt {
public:
@@ -280,7 +281,6 @@ public:
virtual void xferBarrier(GrXferBarrierType) = 0;
struct DrawArgs {
- typedef GrDrawTarget::DrawInfo DrawInfo;
DrawArgs(const GrPrimitiveProcessor* primProc,
const GrPipeline* pipeline,
const GrProgramDesc* desc,
@@ -297,7 +297,7 @@ public:
const GrBatchTracker* fBatchTracker;
};
- void draw(const DrawArgs&, const GrDrawTarget::DrawInfo&);
+ void draw(const DrawArgs&, const GrVertices&);
/** None of these params are optional, pointers used just to avoid making copies. */
struct StencilPathState {
@@ -435,7 +435,7 @@ private:
virtual void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideClip) = 0;
// overridden by backend-specific derived class to perform the draw call.
- virtual void onDraw(const DrawArgs&, const GrDrawTarget::DrawInfo&) = 0;
+ virtual void onDraw(const DrawArgs&, const GrVertices&) = 0;
virtual void onStencilPath(const GrPath*, const StencilPathState&) = 0;
virtual void onDrawPath(const DrawArgs&, const GrPath*, const GrStencilSettings&) = 0;