Revert "Remove unused ActualUse param from GrResourceAllocator"
This reverts commit b80fb0879bee82a439da502f372111fb864e1d91.
Reason for revert: Going back to deferred proxies
Original change's description:
> Remove unused ActualUse param from GrResourceAllocator
>
> This was here for deferred proxies, which are gone now.
>
> Bug: skia:11288
> Change-Id: Idc8a3aef7c3cce62d9397338a0c77d41435527a9
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/367881
> Commit-Queue: Adlai Holler <adlai@google.com>
> Commit-Queue: Robert Phillips <robertphillips@google.com>
> Auto-Submit: Adlai Holler <adlai@google.com>
> Reviewed-by: Robert Phillips <robertphillips@google.com>
TBR=robertphillips@google.com,adlai@google.com
Change-Id: I67c3fa9dd7bb886c956f7ccaf2cc928bfc269604
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:11288
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/368252
Reviewed-by: Adlai Holler <adlai@google.com>
Commit-Queue: Adlai Holler <adlai@google.com>
diff --git a/src/gpu/GrOpsTask.cpp b/src/gpu/GrOpsTask.cpp
index c73a0b7..8eb03cc 100644
--- a/src/gpu/GrOpsTask.cpp
+++ b/src/gpu/GrOpsTask.cpp
@@ -898,19 +898,22 @@
if (fOpChains.count()) {
unsigned int cur = alloc->curOp();
- alloc->addInterval(targetProxy, cur, cur + fOpChains.count() - 1);
+ alloc->addInterval(targetProxy, cur, cur + fOpChains.count() - 1,
+ GrResourceAllocator::ActualUse::kYes);
} else {
// This can happen if there is a loadOp (e.g., a clear) but no other draws. In this case we
// still need to add an interval for the destination so we create a fake op# for
// the missing clear op.
- alloc->addInterval(targetProxy, alloc->curOp(), alloc->curOp());
+ alloc->addInterval(targetProxy, alloc->curOp(), alloc->curOp(),
+ GrResourceAllocator::ActualUse::kYes);
alloc->incOps();
}
auto gather = [ alloc SkDEBUGCODE(, this) ] (GrSurfaceProxy* p, GrMipmapped) {
alloc->addInterval(p,
alloc->curOp(),
- alloc->curOp()
+ alloc->curOp(),
+ GrResourceAllocator::ActualUse::kYes
SkDEBUGCODE(, this->target(0) == p));
};
for (const OpChain& recordedOp : fOpChains) {