Add GrResourceAllocator::reset
This is used in the fallback code when reordering produces
a DAG that goes over our memory budget.
Bug: skia:10877
Change-Id: I13772b30e270eb546957b88586ded1cf42d2dbeb
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/397136
Commit-Queue: Adlai Holler <adlai@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrDrawingManager.cpp b/src/gpu/GrDrawingManager.cpp
index a85436a..99c8e69 100644
--- a/src/gpu/GrDrawingManager.cpp
+++ b/src/gpu/GrDrawingManager.cpp
@@ -205,7 +205,7 @@
bool flushed = false;
{
- GrResourceAllocator alloc(dContext SkDEBUGCODE(, fDAG.count()));
+ GrResourceAllocator alloc(dContext);
for (const auto& task : fDAG) {
SkASSERT(task);
task->gatherProxyIntervals(&alloc);