| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 } | 890 } |
| 891 #endif | 891 #endif |
| 892 if (!input_handler_manager_client) { | 892 if (!input_handler_manager_client) { |
| 893 input_event_filter_ = | 893 input_event_filter_ = |
| 894 new InputEventFilter(this, | 894 new InputEventFilter(this, |
| 895 main_thread_compositor_task_runner_, | 895 main_thread_compositor_task_runner_, |
| 896 compositor_message_loop_proxy_); | 896 compositor_message_loop_proxy_); |
| 897 AddFilter(input_event_filter_.get()); | 897 AddFilter(input_event_filter_.get()); |
| 898 input_handler_manager_client = input_event_filter_.get(); | 898 input_handler_manager_client = input_event_filter_.get(); |
| 899 } | 899 } |
| 900 input_handler_manager_.reset( | 900 input_handler_manager_.reset(new InputHandlerManager( |
| 901 new InputHandlerManager(compositor_message_loop_proxy_, | 901 compositor_message_loop_proxy_, input_handler_manager_client, |
| 902 input_handler_manager_client)); | 902 renderer_scheduler())); |
| 903 } | 903 } |
| 904 | 904 |
| 905 scoped_refptr<base::MessageLoopProxy> output_surface_loop; | 905 scoped_refptr<base::MessageLoopProxy> output_surface_loop; |
| 906 if (enable) | 906 if (enable) |
| 907 output_surface_loop = compositor_message_loop_proxy_; | 907 output_surface_loop = compositor_message_loop_proxy_; |
| 908 else | 908 else |
| 909 output_surface_loop = base::MessageLoopProxy::current(); | 909 output_surface_loop = base::MessageLoopProxy::current(); |
| 910 | 910 |
| 911 compositor_output_surface_filter_ = | 911 compositor_output_surface_filter_ = |
| 912 CompositorOutputSurface::CreateFilter(output_surface_loop.get()); | 912 CompositorOutputSurface::CreateFilter(output_surface_loop.get()); |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1593 hidden_widget_count_--; | 1593 hidden_widget_count_--; |
| 1594 | 1594 |
| 1595 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1595 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1596 return; | 1596 return; |
| 1597 } | 1597 } |
| 1598 | 1598 |
| 1599 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1599 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1600 } | 1600 } |
| 1601 | 1601 |
| 1602 } // namespace content | 1602 } // namespace content |
| OLD | NEW |