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

Unified Diff: components/scheduler/renderer/renderer_scheduler_impl.cc

Issue 1447563002: Implement frame attribution (FrameBlamer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 10 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: components/scheduler/renderer/renderer_scheduler_impl.cc
diff --git a/components/scheduler/renderer/renderer_scheduler_impl.cc b/components/scheduler/renderer/renderer_scheduler_impl.cc
index f24e234f8cd3760bd5d912e634e8ae084c275fd9..de02fab4acc07b1f6ec624c02a50d6003c529b9f 100644
--- a/components/scheduler/renderer/renderer_scheduler_impl.cc
+++ b/components/scheduler/renderer/renderer_scheduler_impl.cc
@@ -1127,6 +1127,19 @@ void RendererSchedulerImpl::ResetForNavigationLocked() {
UpdatePolicyLocked(UpdateType::MAY_EARLY_OUT_IF_POLICY_UNCHANGED);
}
+void RendererSchedulerImpl::SetThreadBlameContext(
+ base::debug::BlameContextBase* blame_context) {
+ // Any task that runs in the default task runners belongs to the context of
+ // the current thread (as opposed to a particular frame). Note that the task
+ // itself may still enter a more specific blame context if necessary.
+ control_task_runner_->SetBlameContext(blame_context);
+ DefaultTaskRunner()->SetBlameContext(blame_context);
+ default_loading_task_runner_->SetBlameContext(blame_context);
+ default_timer_task_runner_->SetBlameContext(blame_context);
+ compositor_task_runner_->SetBlameContext(blame_context);
+ idle_helper_.IdleTaskRunner()->SetBlameContext(blame_context);
+}
+
void RendererSchedulerImpl::RegisterTimeDomain(TimeDomain* time_domain) {
helper_.RegisterTimeDomain(time_domain);
}

Powered by Google App Engine
This is Rietveld 408576698