Chromium Code Reviews| Index: cc/output/context_cache_controller.cc |
| diff --git a/cc/output/context_cache_controller.cc b/cc/output/context_cache_controller.cc |
| index 79e85b3e0336146e41e82aaaf4d0463e21d2e141..38e38c27aca62f9406bee243e5c9d442e2343f34 100644 |
| --- a/cc/output/context_cache_controller.cc |
| +++ b/cc/output/context_cache_controller.cc |
| @@ -5,6 +5,7 @@ |
| #include "cc/output/context_cache_controller.h" |
| #include "base/bind.h" |
| +#include "base/debug/activity_tracker.h" |
| #include "base/logging.h" |
| #include "base/memory/ptr_util.h" |
| #include "base/synchronization/lock.h" |
| @@ -158,8 +159,11 @@ void ContextCacheController::OnIdle(uint32_t idle_generation) { |
| return; |
| } |
| - if (gr_context_) |
| + if (gr_context_) { |
| + // TODO(manzagop): remove ScopedActivity once crbug.com/703342 is fixed. |
| + base::debug::ScopedActivity activity_free(0, 0, 0); |
|
bcwhite
2017/03/21 12:34:38
There is a default ctor that is (0,0,0) if you don
manzagop (departed)
2017/03/21 14:00:23
Done. (Another option is to rely on the activity's
|
| gr_context_->freeGpuResources(); |
| + } |
| // Toggle SetAggressivelyFreeResources to drop command buffer data. |
| context_support_->SetAggressivelyFreeResources(true); |