diff options
author | bsalomon <bsalomon@google.com> | 2015-08-13 13:34:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-13 13:34:48 -0700 |
commit | abd30f54b7ff1704a8930c4307ea242d09425d02 (patch) | |
tree | 08eb5fdaa2fbe55f2e763a1d3c05054896919b68 /gm/convexpolyeffect.cpp | |
parent | 8f34372f7e97482e5e61ab298b7edaa008ba2f4c (diff) |
Introduce GrBatch subclasses GrDrawBatch and GrVertexBatch to prepare for non-drawing batches
Review URL: https://codereview.chromium.org/1293583002
Diffstat (limited to 'gm/convexpolyeffect.cpp')
-rw-r--r-- | gm/convexpolyeffect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gm/convexpolyeffect.cpp b/gm/convexpolyeffect.cpp index ba5cc5be25..1c4a0b1841 100644 --- a/gm/convexpolyeffect.cpp +++ b/gm/convexpolyeffect.cpp @@ -36,7 +36,7 @@ public: const char* name() const override { return "ConvexPolyTestBatch"; } - static GrBatch* Create(const GrGeometryProcessor* gp, const Geometry& geo) { + static GrDrawBatch* Create(const GrGeometryProcessor* gp, const Geometry& geo) { return SkNEW_ARGS(ConvexPolyTestBatch, (gp, geo)); } @@ -197,7 +197,7 @@ protected: geometry.fColor = color.fColor; geometry.fBounds = p.getBounds(); - SkAutoTUnref<GrBatch> batch(ConvexPolyTestBatch::Create(gp, geometry)); + SkAutoTUnref<GrDrawBatch> batch(ConvexPolyTestBatch::Create(gp, geometry)); tt.target()->drawBatch(pipelineBuilder, batch); @@ -246,7 +246,7 @@ protected: geometry.fColor = color.fColor; geometry.fBounds = rect; - SkAutoTUnref<GrBatch> batch(ConvexPolyTestBatch::Create(gp, geometry)); + SkAutoTUnref<GrDrawBatch> batch(ConvexPolyTestBatch::Create(gp, geometry)); tt.target()->drawBatch(pipelineBuilder, batch); |