aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/convexpolyeffect.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-09-17 11:50:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-17 11:50:57 -0700
commiteb44d53cf96a7eaf103a98d76079ce1f5495e343 (patch)
tree5693fc5be9ef4dccb7917b13905d821963b48e4f /gm/convexpolyeffect.cpp
parenta7008403dcd03302e88e2df546d8427afe9e0e80 (diff)
add a ClassID function to GrBatch
Diffstat (limited to 'gm/convexpolyeffect.cpp')
-rw-r--r--gm/convexpolyeffect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/convexpolyeffect.cpp b/gm/convexpolyeffect.cpp
index c014e6a7f5..35cc49859b 100644
--- a/gm/convexpolyeffect.cpp
+++ b/gm/convexpolyeffect.cpp
@@ -31,6 +31,7 @@ namespace skiagm {
class ConvexPolyTestBatch : public GrTestBatch {
public:
+ DEFINE_BATCH_CLASS_ID
struct Geometry : public GrTestBatch::Geometry {
SkRect fBounds;
};
@@ -43,9 +44,8 @@ public:
private:
ConvexPolyTestBatch(const GrGeometryProcessor* gp, const Geometry& geo)
- : INHERITED(gp, geo.fBounds)
+ : INHERITED(ClassID(), gp, geo.fBounds)
, fGeometry(geo) {
- this->initClassID<ConvexPolyTestBatch>();
}
Geometry* geoData(int index) override {