Switch GrMeshDrawOp::Target to be the stand alone GrMeshDrawTarget class
The Tessellator classes will survive in the NGA and they use
GrMeshDrawOp::Target - but GrMeshDrawOp will not survive.
This is a prelude to making all the remaining GrOp-derived classes OGA-only.
Bug: skia:11837
Change-Id: I62dc92e5f42d672342113f12dcedf3435fab993f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/419198
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
diff --git a/src/gpu/ops/GrSmallPathRenderer.cpp b/src/gpu/ops/GrSmallPathRenderer.cpp
index 83d65d8..c2eee7d 100644
--- a/src/gpu/ops/GrSmallPathRenderer.cpp
+++ b/src/gpu/ops/GrSmallPathRenderer.cpp
@@ -186,7 +186,7 @@
// TODO [PI]: implement
}
- void onPrepareDraws(Target* target) override {
+ void onPrepareDraws(GrMeshDrawTarget* target) override {
int instanceCount = fShapes.count();
GrSmallPathAtlasMgr* atlasMgr = target->smallPathAtlasManager();
@@ -363,7 +363,7 @@
this->flush(target, &flushInfo);
}
- bool addToAtlasWithRetry(GrMeshDrawOp::Target* target,
+ bool addToAtlasWithRetry(GrMeshDrawTarget* target,
FlushInfo* flushInfo,
GrSmallPathAtlasMgr* atlasMgr,
int width, int height, const void* image,
@@ -391,7 +391,7 @@
return GrDrawOpAtlas::ErrorCode::kSucceeded == code;
}
- bool addDFPathToAtlas(GrMeshDrawOp::Target* target, FlushInfo* flushInfo,
+ bool addDFPathToAtlas(GrMeshDrawTarget* target, FlushInfo* flushInfo,
GrSmallPathAtlasMgr* atlasMgr, GrSmallPathShapeData* shapeData,
const GrStyledShape& shape, uint32_t dimension, SkScalar scale) const {
@@ -483,7 +483,7 @@
drawBounds, SK_DistanceFieldPad, shapeData);
}
- bool addBMPathToAtlas(GrMeshDrawOp::Target* target, FlushInfo* flushInfo,
+ bool addBMPathToAtlas(GrMeshDrawTarget* target, FlushInfo* flushInfo,
GrSmallPathAtlasMgr* atlasMgr, GrSmallPathShapeData* shapeData,
const GrStyledShape& shape, const SkMatrix& ctm) const {
const SkRect& bounds = shape.bounds();
@@ -574,7 +574,7 @@
}
}
- void flush(GrMeshDrawOp::Target* target, FlushInfo* flushInfo) const {
+ void flush(GrMeshDrawTarget* target, FlushInfo* flushInfo) const {
GrSmallPathAtlasMgr* atlasMgr = target->smallPathAtlasManager();
if (!atlasMgr) {
return;