Index: gm/convexpolyeffect.cpp |
diff --git a/gm/convexpolyeffect.cpp b/gm/convexpolyeffect.cpp |
index f040b90ed28a56cbb110948a600a0beae9304d51..fb767ddc89f760d4994b6c137d77039fe4045e2e 100644 |
--- a/gm/convexpolyeffect.cpp |
+++ b/gm/convexpolyeffect.cpp |
@@ -45,6 +45,9 @@ private: |
ConvexPolyTestBatch(const GrGeometryProcessor* gp, const Geometry& geo) |
: INHERITED(ClassID(), gp, geo.fBounds) |
, fGeometry(geo) { |
+ // Make sure any artifacts around the exterior of path are visible by using overly |
+ // conservative bounding geometry. |
+ fGeometry.fBounds.outset(5.f, 5.f); |
} |
Geometry* geoData(int index) override { |
@@ -57,7 +60,7 @@ private: |
return &fGeometry; |
} |
- void generateGeometry(Target* target) override { |
+ void generateGeometry(Target* target) const override { |
size_t vertexStride = this->geometryProcessor()->getVertexStride(); |
SkASSERT(vertexStride == sizeof(SkPoint)); |
QuadHelper helper; |
@@ -66,9 +69,6 @@ private: |
return; |
} |
- // Make sure any artifacts around the exterior of path are visible by using overly |
- // conservative bounding geometry. |
- fGeometry.fBounds.outset(5.f, 5.f); |
fGeometry.fBounds.toQuad(verts); |
helper.recordDraw(target); |