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 "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
10 #include "content/common/android/sync_compositor_messages.h" | 10 #include "content/common/android/sync_compositor_messages.h" |
11 #include "content/common/android/sync_compositor_statics.h" | 11 #include "content/common/android/sync_compositor_statics.h" |
12 #include "content/common/cc_messages.h" | 12 #include "content/common/cc_messages.h" |
13 #include "content/public/common/content_switches.h" | 13 #include "content/public/common/content_switches.h" |
14 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
15 #include "ipc/ipc_sender.h" | 15 #include "ipc/ipc_sender.h" |
16 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
17 #include "third_party/skia/include/core/SkCanvas.h" | 17 #include "third_party/skia/include/core/SkCanvas.h" |
18 #include "third_party/skia/include/core/SkImageInfo.h" | 18 #include "third_party/skia/include/core/SkImageInfo.h" |
19 #include "third_party/skia/include/core/SkRegion.h" | 19 #include "third_party/skia/include/core/SkRegion.h" |
20 #include "ui/events/latency_info.h" | |
21 #include "ui/gfx/skia_util.h" | 20 #include "ui/gfx/skia_util.h" |
| 21 #include "ui/latency_info/latency_info.h" |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 | 24 |
25 SynchronousCompositorProxy::SynchronousCompositorProxy( | 25 SynchronousCompositorProxy::SynchronousCompositorProxy( |
26 int routing_id, | 26 int routing_id, |
27 IPC::Sender* sender, | 27 IPC::Sender* sender, |
28 SynchronousCompositorExternalBeginFrameSource* begin_frame_source, | 28 SynchronousCompositorExternalBeginFrameSource* begin_frame_source, |
29 ui::SynchronousInputHandlerProxy* input_handler_proxy, | 29 ui::SynchronousInputHandlerProxy* input_handler_proxy, |
30 InputHandlerManagerClient::Handler* handler) | 30 InputHandlerManagerClient::Handler* handler) |
31 : routing_id_(routing_id), | 31 : routing_id_(routing_id), |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 begin_frame_source_->SetBeginFrameSourcePaused( | 422 begin_frame_source_->SetBeginFrameSourcePaused( |
423 common_params.begin_frame_source_paused); | 423 common_params.begin_frame_source_paused); |
424 if (output_surface_ && !common_params.ack.resources.empty()) { | 424 if (output_surface_ && !common_params.ack.resources.empty()) { |
425 output_surface_->ReturnResources( | 425 output_surface_->ReturnResources( |
426 common_params.output_surface_id_for_returned_resources, | 426 common_params.output_surface_id_for_returned_resources, |
427 common_params.ack); | 427 common_params.ack); |
428 } | 428 } |
429 } | 429 } |
430 | 430 |
431 } // namespace content | 431 } // namespace content |
OLD | NEW |