Merge GrOpList and GrRTOpList and rename to GrOpsTask.
Change-Id: I8f4f2218a30fd0541a8f79f7bb9850f9500cd243
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/236343
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/ccpr/GrCCDrawPathsOp.cpp b/src/gpu/ccpr/GrCCDrawPathsOp.cpp
index 0a6433c..4ad6cd9 100644
--- a/src/gpu/ccpr/GrCCDrawPathsOp.cpp
+++ b/src/gpu/ccpr/GrCCDrawPathsOp.cpp
@@ -111,7 +111,7 @@
// If the path is clipped, CCPR will only draw the visible portion. This helps improve batching,
// since it eliminates the need for scissor when drawing to the main canvas.
// FIXME: We should parse the path right here. It will provide a tighter bounding box for us to
- // give the opList, as well as enabling threaded parsing when using DDL.
+ // give the opsTask, as well as enabling threaded parsing when using DDL.
SkRect clippedDrawBounds;
if (!clippedDrawBounds.intersect(conservativeDevBounds, SkRect::Make(maskDevIBounds))) {
clippedDrawBounds.setEmpty();
@@ -122,9 +122,9 @@
}
GrCCDrawPathsOp::~GrCCDrawPathsOp() {
- if (fOwningPerOpListPaths) {
+ if (fOwningPerOpsTaskPaths) {
// Remove the list's dangling pointer to this Op before deleting it.
- fOwningPerOpListPaths->fDrawOps.remove(this);
+ fOwningPerOpsTaskPaths->fDrawOps.remove(this);
}
}
@@ -195,9 +195,10 @@
GrOp::CombineResult GrCCDrawPathsOp::onCombineIfPossible(GrOp* op, const GrCaps&) {
GrCCDrawPathsOp* that = op->cast<GrCCDrawPathsOp>();
- SkASSERT(fOwningPerOpListPaths);
+ SkASSERT(fOwningPerOpsTaskPaths);
SkASSERT(fNumDraws);
- SkASSERT(!that->fOwningPerOpListPaths || that->fOwningPerOpListPaths == fOwningPerOpListPaths);
+ SkASSERT(!that->fOwningPerOpsTaskPaths ||
+ that->fOwningPerOpsTaskPaths == fOwningPerOpsTaskPaths);
SkASSERT(that->fNumDraws);
if (fProcessors != that->fProcessors ||
@@ -205,18 +206,18 @@
return CombineResult::kCannotCombine;
}
- fDraws.append(std::move(that->fDraws), &fOwningPerOpListPaths->fAllocator);
+ fDraws.append(std::move(that->fDraws), &fOwningPerOpsTaskPaths->fAllocator);
SkDEBUGCODE(fNumDraws += that->fNumDraws);
SkDEBUGCODE(that->fNumDraws = 0);
return CombineResult::kMerged;
}
-void GrCCDrawPathsOp::addToOwningPerOpListPaths(sk_sp<GrCCPerOpListPaths> owningPerOpListPaths) {
+void GrCCDrawPathsOp::addToOwningPerOpsTaskPaths(sk_sp<GrCCPerOpsTaskPaths> owningPerOpsTaskPaths) {
SkASSERT(1 == fNumDraws);
- SkASSERT(!fOwningPerOpListPaths);
- fOwningPerOpListPaths = std::move(owningPerOpListPaths);
- fOwningPerOpListPaths->fDrawOps.addToTail(this);
+ SkASSERT(!fOwningPerOpsTaskPaths);
+ fOwningPerOpsTaskPaths = std::move(owningPerOpsTaskPaths);
+ fOwningPerOpsTaskPaths->fDrawOps.addToTail(this);
}
void GrCCDrawPathsOp::accountForOwnPaths(GrCCPathCache* pathCache,
@@ -414,9 +415,9 @@
}
void GrCCDrawPathsOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) {
- SkASSERT(fOwningPerOpListPaths);
+ SkASSERT(fOwningPerOpsTaskPaths);
- const GrCCPerFlushResources* resources = fOwningPerOpListPaths->fFlushResources.get();
+ const GrCCPerFlushResources* resources = fOwningPerOpsTaskPaths->fFlushResources.get();
if (!resources) {
return; // Setup failed.
}