diff options
author | 2015-09-17 11:21:17 -0700 | |
---|---|---|
committer | 2015-09-17 11:21:17 -0700 | |
commit | 4078d529e9e199eea13456db7bf3a63a104ab5b9 (patch) | |
tree | 5693fc5be9ef4dccb7917b13905d821963b48e4f /gm/beziereffects.cpp | |
parent | ef4ba3da0b1fe375b9631bcd17c43c645f4aa5a6 (diff) |
add a ClassID function to GrBatch
BUG=skia:
Review URL: https://codereview.chromium.org/1352813003
Diffstat (limited to 'gm/beziereffects.cpp')
-rw-r--r-- | gm/beziereffects.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp index 1886a4a2b0..81d5c583d8 100644 --- a/gm/beziereffects.cpp +++ b/gm/beziereffects.cpp @@ -32,6 +32,7 @@ namespace skiagm { class BezierCubicOrConicTestBatch : public GrTestBatch { public: + DEFINE_BATCH_CLASS_ID struct Geometry : public GrTestBatch::Geometry { SkRect fBounds; }; @@ -46,8 +47,7 @@ public: private: BezierCubicOrConicTestBatch(const GrGeometryProcessor* gp, const Geometry& geo, const SkScalar klmEqs[9], SkScalar sign) - : INHERITED(gp, geo.fBounds) { - this->initClassID<BezierCubicOrConicTestBatch>(); + : INHERITED(ClassID(), gp, geo.fBounds) { for (int i = 0; i < 9; i++) { fKlmEqs[i] = klmEqs[i]; } @@ -432,6 +432,7 @@ private: class BezierQuadTestBatch : public GrTestBatch { public: + DEFINE_BATCH_CLASS_ID struct Geometry : public GrTestBatch::Geometry { SkRect fBounds; }; @@ -446,10 +447,9 @@ public: private: BezierQuadTestBatch(const GrGeometryProcessor* gp, const Geometry& geo, const GrPathUtils::QuadUVMatrix& devToUV) - : INHERITED(gp, geo.fBounds) + : INHERITED(ClassID(), gp, geo.fBounds) , fGeometry(geo) , fDevToUV(devToUV) { - this->initClassID<BezierQuadTestBatch>(); } struct Vertex { |