| Index: cc/trees/thread_proxy.cc
|
| diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
|
| index 1d355cde39493c29e1c10a98e07d8d1a96894aec..c8b8cc411a5d78e98e7f0b4ae4a55f02186391aa 100644
|
| --- a/cc/trees/thread_proxy.cc
|
| +++ b/cc/trees/thread_proxy.cc
|
| @@ -516,8 +516,7 @@ void ThreadProxy::MainThreadHasStoppedFlinging() {
|
|
|
| void ThreadProxy::MainThreadHasStoppedFlingingOnImplThread() {
|
| DCHECK(IsImplThread());
|
| - if (input_handler_client_on_impl_thread_)
|
| - input_handler_client_on_impl_thread_->MainThreadHasStoppedFlinging();
|
| + layer_tree_host_impl_->MainThreadHasStoppedFlinging();
|
| }
|
|
|
| void ThreadProxy::Start(scoped_ptr<OutputSurface> first_output_surface) {
|
| @@ -527,13 +526,10 @@ void ThreadProxy::Start(scoped_ptr<OutputSurface> first_output_surface) {
|
| // Create LayerTreeHostImpl.
|
| DebugScopedSetMainThreadBlocked main_thread_blocked(this);
|
| CompletionEvent completion;
|
| - scoped_ptr<InputHandlerClient> input_handler_client =
|
| - layer_tree_host_->CreateInputHandlerClient();
|
| Proxy::ImplThread()->PostTask(
|
| base::Bind(&ThreadProxy::InitializeImplOnImplThread,
|
| base::Unretained(this),
|
| - &completion,
|
| - input_handler_client.release()));
|
| + &completion));
|
| completion.Wait();
|
|
|
| main_thread_weak_ptr_ = weak_factory_.GetWeakPtr();
|
| @@ -897,9 +893,6 @@ ThreadProxy::ScheduledActionDrawAndSwapInternal(bool forced_draw) {
|
| layer_tree_host_impl_->CurrentFrameTimeTicks();
|
| base::Time wall_clock_time = layer_tree_host_impl_->CurrentFrameTime();
|
|
|
| - if (input_handler_client_on_impl_thread_)
|
| - input_handler_client_on_impl_thread_->Animate(monotonic_time);
|
| -
|
| layer_tree_host_impl_->ActivatePendingTreeIfNeeded();
|
| layer_tree_host_impl_->Animate(monotonic_time, wall_clock_time);
|
| layer_tree_host_impl_->UpdateBackgroundAnimateTicking(false);
|
| @@ -1098,9 +1091,7 @@ void ThreadProxy::HasInitializedOutputSurfaceOnImplThread(
|
| completion->Signal();
|
| }
|
|
|
| -void ThreadProxy::InitializeImplOnImplThread(
|
| - CompletionEvent* completion,
|
| - InputHandlerClient* input_handler_client) {
|
| +void ThreadProxy::InitializeImplOnImplThread(CompletionEvent* completion) {
|
| TRACE_EVENT0("cc", "ThreadProxy::InitializeImplOnImplThread");
|
| DCHECK(IsImplThread());
|
| layer_tree_host_impl_ = layer_tree_host_->CreateLayerTreeHostImpl(this);
|
| @@ -1135,12 +1126,6 @@ void ThreadProxy::InitializeImplOnImplThread(
|
| scheduler_settings);
|
| scheduler_on_impl_thread_->SetVisible(layer_tree_host_impl_->visible());
|
|
|
| - input_handler_client_on_impl_thread_.reset(input_handler_client);
|
| - if (input_handler_client_on_impl_thread_) {
|
| - input_handler_client_on_impl_thread_->BindToHandler(
|
| - layer_tree_host_impl_.get());
|
| - }
|
| -
|
| impl_thread_weak_ptr_ = weak_factory_on_impl_thread_.GetWeakPtr();
|
| completion->Signal();
|
| }
|
| @@ -1206,7 +1191,6 @@ void ThreadProxy::LayerTreeHostClosedOnImplThread(CompletionEvent* completion) {
|
| layer_tree_host_->DeleteContentsTexturesOnImplThread(
|
| layer_tree_host_impl_->resource_provider());
|
| layer_tree_host_impl_->EnableVSyncNotification(false);
|
| - input_handler_client_on_impl_thread_.reset();
|
| scheduler_on_impl_thread_.reset();
|
| layer_tree_host_impl_.reset();
|
| weak_factory_on_impl_thread_.InvalidateWeakPtrs();
|
|
|