Index: gm/convexpolyeffect.cpp |
diff --git a/gm/convexpolyeffect.cpp b/gm/convexpolyeffect.cpp |
index e9b417fc38dd69f47aeb1906d96e789ebce16640..30471a797d3d65810335848d604fe7277a63bb58 100644 |
--- a/gm/convexpolyeffect.cpp |
+++ b/gm/convexpolyeffect.cpp |
@@ -12,7 +12,7 @@ |
#if SK_SUPPORT_GPU |
-#include "GrBatchTarget.h" |
+#include "GrBatchFlushState.h" |
#include "GrContext.h" |
#include "GrDefaultGeoProcFactory.h" |
#include "GrPathUtils.h" |
@@ -58,11 +58,11 @@ private: |
return &fGeometry; |
} |
- void onGenerateGeometry(GrBatchTarget* batchTarget) override { |
+ void generateGeometry(Target* target) override { |
size_t vertexStride = this->geometryProcessor()->getVertexStride(); |
SkASSERT(vertexStride == sizeof(SkPoint)); |
QuadHelper helper; |
- SkPoint* verts = reinterpret_cast<SkPoint*>(helper.init(batchTarget, vertexStride, 1)); |
+ SkPoint* verts = reinterpret_cast<SkPoint*>(helper.init(target, vertexStride, 1)); |
if (!verts) { |
return; |
} |
@@ -72,7 +72,7 @@ private: |
fGeometry.fBounds.outset(5.f, 5.f); |
fGeometry.fBounds.toQuad(verts); |
- helper.issueDraw(batchTarget); |
+ helper.recordDraw(target); |
} |
Geometry fGeometry; |