diff options
author | 2015-05-01 13:43:30 -0700 | |
---|---|---|
committer | 2015-05-01 13:43:30 -0700 | |
commit | 99c7c07e0f1f7b78980eb21d84bebda8b45a7178 (patch) | |
tree | ed58f4b8b002dbe933612aa000a37d0406d617c4 /gm/convexpolyeffect.cpp | |
parent | a499f905e9340e4935447f2562fd92e8853382b1 (diff) |
Move bounds to GrBatch
BUG=skia:
Review URL: https://codereview.chromium.org/1121463002
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 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); } |