Index: gm/convexpolyeffect.cpp |
diff --git a/gm/convexpolyeffect.cpp b/gm/convexpolyeffect.cpp |
index 8ee4a5db6f1312e04fa310d9d2333e492a9977cd..1e5c6017ca93e38ff1dc9532d4ca56083b68853f 100644 |
--- a/gm/convexpolyeffect.cpp |
+++ b/gm/convexpolyeffect.cpp |
@@ -133,13 +133,15 @@ protected: |
} |
GrDrawState ds; |
- ds.setGeometryProcessor(GrDefaultGeoProcFactory::Create(false))->unref(); |
+ const GrGeometryProcessor* gp = GrDefaultGeoProcFactory::Create(); |
+ ds.setGeometryProcessor(gp)->unref(); |
ds.addCoverageProcessor(fp); |
ds.setIdentityViewMatrix(); |
ds.setRenderTarget(rt); |
ds.setColor(0xff000000); |
- GrDrawTarget::AutoReleaseGeometry geo(tt.target(), 4, ds.getVertexStride(), 0); |
+ GrDrawTarget::AutoReleaseGeometry geo(tt.target(), 4, gp->getVertexStride(), 0); |
+ SkASSERT(gp->getVertexStride() == sizeof(SkPoint)); |
SkPoint* verts = reinterpret_cast<SkPoint*>(geo.vertices()); |
SkRect bounds = p.getBounds(); |
@@ -189,13 +191,15 @@ protected: |
} |
GrDrawState ds; |
- ds.setGeometryProcessor(GrDefaultGeoProcFactory::Create(false))->unref(); |
+ const GrGeometryProcessor* gp = GrDefaultGeoProcFactory::Create(); |
+ ds.setGeometryProcessor(gp)->unref(); |
ds.addCoverageProcessor(fp); |
ds.setIdentityViewMatrix(); |
ds.setRenderTarget(rt); |
ds.setColor(0xff000000); |
- GrDrawTarget::AutoReleaseGeometry geo(tt.target(), 4, ds.getVertexStride(), 0); |
+ GrDrawTarget::AutoReleaseGeometry geo(tt.target(), 4, gp->getVertexStride(), 0); |
+ SkASSERT(gp->getVertexStride() == sizeof(SkPoint)); |
SkPoint* verts = reinterpret_cast<SkPoint*>(geo.vertices()); |
SkRect bounds = rect; |