| Index: cc/output/context_cache_controller.cc
|
| diff --git a/cc/output/context_cache_controller.cc b/cc/output/context_cache_controller.cc
|
| index de178771aeef81048d5d4e71aaf106d0c464bdc4..6bdc85320d0610581f02f0d85ee3c9fa042fb472 100644
|
| --- a/cc/output/context_cache_controller.cc
|
| +++ b/cc/output/context_cache_controller.cc
|
| @@ -159,8 +159,9 @@ void ContextCacheController::OnIdle(uint32_t idle_generation) {
|
| return;
|
| }
|
|
|
| - if (gr_context_)
|
| - gr_context_->freeGpuResources();
|
| + if (gr_context_) {
|
| + gr_context_->purgeResourcesNotUsedInMs(std::chrono::milliseconds(0));
|
| + }
|
|
|
| // Toggle SetAggressivelyFreeResources to drop command buffer data.
|
| context_support_->SetAggressivelyFreeResources(true);
|
|
|