Fuse GrPrimitiveProcessor & GrGeometryProcessor into a new GrGeometryProcessor
With the removal of NVPR we no longer need this distinction.
Bug: skia:11760
Change-Id: I225a4feb764395fb72aca3ffc8b6d05396bf0b1e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/386890
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
diff --git a/src/gpu/ops/GrStrokeRectOp.cpp b/src/gpu/ops/GrStrokeRectOp.cpp
index e8a358c..cfad2bd 100644
--- a/src/gpu/ops/GrStrokeRectOp.cpp
+++ b/src/gpu/ops/GrStrokeRectOp.cpp
@@ -201,7 +201,7 @@
this->createProgramInfo(target);
}
- size_t kVertexStride = fProgramInfo->primProc().vertexStride();
+ size_t kVertexStride = fProgramInfo->geomProc().vertexStride();
int vertexCount = kVertsPerHairlineRect;
if (fStrokeWidth > 0) {
vertexCount = kVertsPerStrokeRect;
@@ -241,7 +241,7 @@
}
flushState->bindPipelineAndScissorClip(*fProgramInfo, chainBounds);
- flushState->bindTextures(fProgramInfo->primProc(), nullptr, fProgramInfo->pipeline());
+ flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline());
flushState->drawMesh(*fMesh);
}
@@ -568,7 +568,7 @@
return;
}
PatternHelper helper(target, GrPrimitiveType::kTriangles,
- fProgramInfo->primProc().vertexStride(), std::move(indexBuffer),
+ fProgramInfo->geomProc().vertexStride(), std::move(indexBuffer),
verticesPerInstance, indicesPerInstance, instanceCount, maxQuads);
GrVertexWriter vertices{ helper.vertices() };
if (!vertices.fPtr) {
@@ -598,7 +598,7 @@
}
flushState->bindPipelineAndScissorClip(*fProgramInfo, chainBounds);
- flushState->bindTextures(fProgramInfo->primProc(), nullptr, fProgramInfo->pipeline());
+ flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline());
flushState->drawMesh(*fMesh);
}