Index: cc/trees/thread_proxy.cc |
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc |
index b25f8c23a16c819caffa216eb4fa67a3f1eaaab5..dd0a7d9858d350bc36961bbe072d95d32ef5782e 100644 |
--- a/cc/trees/thread_proxy.cc |
+++ b/cc/trees/thread_proxy.cc |
@@ -11,6 +11,7 @@ |
#include "base/debug/trace_event.h" |
#include "base/metrics/histogram.h" |
#include "cc/debug/benchmark_instrumentation.h" |
+#include "cc/debug/devtools_instrumentation.h" |
#include "cc/input/input_handler.h" |
#include "cc/output/context_provider.h" |
#include "cc/output/output_surface.h" |
@@ -94,7 +95,8 @@ ThreadProxy::ThreadProxy( |
begin_main_frame_to_commit_duration_history_(kDurationHistorySize), |
commit_to_activate_duration_history_(kDurationHistorySize), |
weak_factory_on_impl_thread_(this), |
- weak_factory_(this) { |
+ weak_factory_(this), |
+ tree_id_(layer_tree_host_->id()) { |
TRACE_EVENT0("cc", "ThreadProxy::ThreadProxy"); |
DCHECK(IsMainThread()); |
DCHECK(layer_tree_host_); |
@@ -1347,7 +1349,8 @@ void ThreadProxy::InitializeImplOnImplThread(CompletionEvent* completion) { |
settings.using_synchronous_renderer_compositor; |
scheduler_settings.throttle_frame_production = |
settings.throttle_frame_production; |
- scheduler_on_impl_thread_ = Scheduler::Create(this, scheduler_settings); |
+ scheduler_on_impl_thread_ = Scheduler::Create(this, scheduler_settings, |
+ tree_id_); |
scheduler_on_impl_thread_->SetVisible(layer_tree_host_impl_->visible()); |
impl_thread_weak_ptr_ = weak_factory_on_impl_thread_.GetWeakPtr(); |