Check for work completion before purging resources.
Change-Id: I17653e036ceb5f505284ae64cf6918b3bd2e02ce Reviewed-on: https://skia-review.googlesource.com/c/skia/+/310762 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
This commit is contained in:
parent
4e54367db3
commit
e0da379fb7
@ -212,6 +212,7 @@ void GrContext::performDeferredCleanup(std::chrono::milliseconds msNotUsed) {
|
||||
return;
|
||||
}
|
||||
|
||||
this->checkAsyncWorkCompletion();
|
||||
fMappedBufferManager->process();
|
||||
auto purgeTime = GrStdSteadyClock::now() - msNotUsed;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user