aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-07-16 08:12:45 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-16 08:12:45 -0700
commitdbe1e6f0c32bd07b7669b1b1ac3c7f58c9b8d773 (patch)
tree7911e79e520c673044bcc16bab0d5a60cb48cc71 /gm
parent3e5f55542cbd23f1ad448cac3d29e8551204552c (diff)
Give GrBatch a pointer to GrPipeline
Diffstat (limited to 'gm')
-rw-r--r--gm/beziereffects.cpp2
-rw-r--r--gm/convexpolyeffect.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp
index 5e00608fa7..6e586196f4 100644
--- a/gm/beziereffects.cpp
+++ b/gm/beziereffects.cpp
@@ -46,6 +46,7 @@ private:
BezierCubicOrConicTestBatch(const GrGeometryProcessor* gp, const Geometry& geo,
const SkScalar klmEqs[9], SkScalar sign)
: INHERITED(gp, geo.fBounds) {
+ this->initClassID<BezierCubicOrConicTestBatch>();
for (int i = 0; i < 9; i++) {
fKlmEqs[i] = klmEqs[i];
}
@@ -447,6 +448,7 @@ private:
: INHERITED(gp, geo.fBounds)
, fGeometry(geo)
, fDevToUV(devToUV) {
+ this->initClassID<BezierQuadTestBatch>();
}
struct Vertex {
diff --git a/gm/convexpolyeffect.cpp b/gm/convexpolyeffect.cpp
index 2c77bceb0a..9891f87215 100644
--- a/gm/convexpolyeffect.cpp
+++ b/gm/convexpolyeffect.cpp
@@ -43,6 +43,7 @@ private:
ConvexPolyTestBatch(const GrGeometryProcessor* gp, const Geometry& geo)
: INHERITED(gp, geo.fBounds)
, fGeometry(geo) {
+ this->initClassID<ConvexPolyTestBatch>();
}
Geometry* geoData(int index) override {