Index: src/gpu/batches/GrNonAAFillRectBatch.cpp |
diff --git a/src/gpu/batches/GrNonAAFillRectBatch.cpp b/src/gpu/batches/GrNonAAFillRectBatch.cpp |
index 5f37741b4647fa4e9d460dcd3f6c4759d678fd26..09643444d08314df981df6fc6fd1fa6ea53bf52f 100644 |
--- a/src/gpu/batches/GrNonAAFillRectBatch.cpp |
+++ b/src/gpu/batches/GrNonAAFillRectBatch.cpp |
@@ -134,13 +134,13 @@ public: |
} |
static bool CanCombine(const Geometry& mine, const Geometry& theirs, |
- const GrPipelineOptimizations& opts) { |
+ const GrXPOverridesForBatch& overrides) { |
return true; |
} |
static const GrGeometryProcessor* CreateGP(const Geometry& geo, |
- const GrPipelineOptimizations& opts) { |
- const GrGeometryProcessor* gp = create_gp(geo.fViewMatrix, opts.readsCoverage(), true, |
+ const GrXPOverridesForBatch& overrides) { |
+ const GrGeometryProcessor* gp = create_gp(geo.fViewMatrix, overrides.readsCoverage(), true, |
nullptr); |
SkASSERT(gp->getVertexStride() == |
@@ -149,7 +149,7 @@ public: |
} |
static void Tesselate(intptr_t vertices, size_t vertexStride, const Geometry& geo, |
- const GrPipelineOptimizations& opts) { |
+ const GrXPOverridesForBatch& overrides) { |
tesselate(vertices, vertexStride, geo.fColor, geo.fViewMatrix, geo.fRect, &geo.fLocalQuad); |
} |
}; |
@@ -179,7 +179,7 @@ public: |
} |
static bool CanCombine(const Geometry& mine, const Geometry& theirs, |
- const GrPipelineOptimizations& opts) { |
+ const GrXPOverridesForBatch& overrides) { |
// We could batch across perspective vm changes if we really wanted to |
return mine.fViewMatrix.cheapEqualTo(theirs.fViewMatrix) && |
mine.fHasLocalRect == theirs.fHasLocalRect && |
@@ -187,8 +187,8 @@ public: |
} |
static const GrGeometryProcessor* CreateGP(const Geometry& geo, |
- const GrPipelineOptimizations& opts) { |
- const GrGeometryProcessor* gp = create_gp(geo.fViewMatrix, opts.readsCoverage(), |
+ const GrXPOverridesForBatch& overrides) { |
+ const GrGeometryProcessor* gp = create_gp(geo.fViewMatrix, overrides.readsCoverage(), |
geo.fHasLocalRect, |
geo.fHasLocalMatrix ? &geo.fLocalMatrix : |
nullptr); |
@@ -200,7 +200,7 @@ public: |
} |
static void Tesselate(intptr_t vertices, size_t vertexStride, const Geometry& geo, |
- const GrPipelineOptimizations& opts) { |
+ const GrXPOverridesForBatch& overrides) { |
if (geo.fHasLocalRect) { |
GrQuad quad(geo.fLocalRect); |
tesselate(vertices, vertexStride, geo.fColor, geo.fViewMatrix, geo.fRect, &quad); |