aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/convexpolyeffect.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-05-01 13:43:30 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-01 13:43:30 -0700
commit99c7c07e0f1f7b78980eb21d84bebda8b45a7178 (patch)
treeed58f4b8b002dbe933612aa000a37d0406d617c4 /gm/convexpolyeffect.cpp
parenta499f905e9340e4935447f2562fd92e8853382b1 (diff)
Move bounds to GrBatch
Diffstat (limited to 'gm/convexpolyeffect.cpp')
-rw-r--r--gm/convexpolyeffect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gm/convexpolyeffect.cpp b/gm/convexpolyeffect.cpp
index 294de5537f..07d5fc2112 100644
--- a/gm/convexpolyeffect.cpp
+++ b/gm/convexpolyeffect.cpp
@@ -42,7 +42,7 @@ public:
private:
ConvexPolyTestBatch(const GrGeometryProcessor* gp, const Geometry& geo)
- : INHERITED(gp)
+ : INHERITED(gp, geo.fBounds)
, fGeometry(geo) {
}
@@ -211,7 +211,7 @@ protected:
SkAutoTUnref<GrBatch> batch(ConvexPolyTestBatch::Create(gp, geometry));
- tt.target()->drawBatch(&pipelineBuilder, batch, NULL);
+ tt.target()->drawBatch(&pipelineBuilder, batch);
x += SkScalarCeilToScalar(path->getBounds().width() + 10.f);
}
@@ -260,7 +260,7 @@ protected:
SkAutoTUnref<GrBatch> batch(ConvexPolyTestBatch::Create(gp, geometry));
- tt.target()->drawBatch(&pipelineBuilder, batch, NULL);
+ tt.target()->drawBatch(&pipelineBuilder, batch);
x += SkScalarCeilToScalar(rect.width() + 10.f);
}