OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/android/synchronous_compositor_proxy.h" | 5 #include "content/renderer/android/synchronous_compositor_proxy.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "content/common/android/sync_compositor_messages.h" | 8 #include "content/common/android/sync_compositor_messages.h" |
9 #include "content/common/cc_messages.h" | 9 #include "content/common/cc_messages.h" |
10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
11 #include "ipc/ipc_sender.h" | 11 #include "ipc/ipc_sender.h" |
12 #include "ui/events/latency_info.h" | 12 #include "ui/events/latency_info.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 SynchronousCompositorProxy::SynchronousCompositorProxy( | 16 SynchronousCompositorProxy::SynchronousCompositorProxy( |
17 int routing_id, | 17 int routing_id, |
18 IPC::Sender* sender, | 18 IPC::Sender* sender, |
19 SynchronousCompositorOutputSurface* output_surface, | 19 SynchronousCompositorOutputSurface* output_surface, |
20 SynchronousCompositorExternalBeginFrameSource* begin_frame_source, | 20 SynchronousCompositorExternalBeginFrameSource* begin_frame_source, |
21 SynchronousInputHandlerProxy* input_handler_proxy, | 21 ui::SynchronousInputHandlerProxy* input_handler_proxy, |
22 InputHandlerManagerClient::Handler* handler) | 22 InputHandlerManagerClient::Handler* handler) |
23 : routing_id_(routing_id), | 23 : routing_id_(routing_id), |
24 sender_(sender), | 24 sender_(sender), |
25 output_surface_(output_surface), | 25 output_surface_(output_surface), |
26 begin_frame_source_(begin_frame_source), | 26 begin_frame_source_(begin_frame_source), |
27 input_handler_proxy_(input_handler_proxy), | 27 input_handler_proxy_(input_handler_proxy), |
28 input_handler_(handler), | 28 input_handler_(handler), |
29 inside_receive_(false), | 29 inside_receive_(false), |
30 bytes_limit_(0u), | 30 bytes_limit_(0u), |
31 version_(0u), | 31 version_(0u), |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 total_scroll_offset_ = common_params.root_scroll_offset; | 225 total_scroll_offset_ = common_params.root_scroll_offset; |
226 input_handler_proxy_->SynchronouslySetRootScrollOffset( | 226 input_handler_proxy_->SynchronouslySetRootScrollOffset( |
227 total_scroll_offset_); | 227 total_scroll_offset_); |
228 } | 228 } |
229 if (!common_params.ack.resources.empty()) { | 229 if (!common_params.ack.resources.empty()) { |
230 output_surface_->ReturnResources(common_params.ack); | 230 output_surface_->ReturnResources(common_params.ack); |
231 } | 231 } |
232 } | 232 } |
233 | 233 |
234 } // namespace content | 234 } // namespace content |
OLD | NEW |