Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2757)

Unified Diff: cc/output/context_cache_controller.cc

Issue 2761093002: Instrument ContextCacheController::OnIdle for postmortem reports
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_implementation.cc » ('j') | gpu/command_buffer/client/gles2_implementation.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698