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/gpu/compositor_output_surface.h" | 5 #include "content/renderer/gpu/compositor_output_surface.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "cc/output/compositor_frame.h" | 14 #include "cc/output/compositor_frame.h" |
15 #include "cc/output/compositor_frame_ack.h" | 15 #include "cc/output/compositor_frame_ack.h" |
16 #include "cc/output/managed_memory_policy.h" | 16 #include "cc/output/managed_memory_policy.h" |
17 #include "cc/output/output_surface_client.h" | 17 #include "cc/output/output_surface_client.h" |
18 #include "content/common/gpu/client/context_provider_command_buffer.h" | 18 #include "content/common/gpu/client/context_provider_command_buffer.h" |
19 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | |
20 #include "content/common/view_messages.h" | 19 #include "content/common/view_messages.h" |
21 #include "content/public/common/content_switches.h" | 20 #include "content/public/common/content_switches.h" |
22 #include "content/renderer/gpu/frame_swap_message_queue.h" | 21 #include "content/renderer/gpu/frame_swap_message_queue.h" |
23 #include "content/renderer/render_thread_impl.h" | 22 #include "content/renderer/render_thread_impl.h" |
24 #include "gpu/command_buffer/client/context_support.h" | 23 #include "gpu/command_buffer/client/context_support.h" |
25 #include "gpu/command_buffer/client/gles2_interface.h" | 24 #include "gpu/command_buffer/client/gles2_interface.h" |
26 #include "gpu/ipc/client/command_buffer_proxy_impl.h" | 25 #include "gpu/ipc/client/command_buffer_proxy_impl.h" |
27 #include "ipc/ipc_sync_channel.h" | 26 #include "ipc/ipc_sync_channel.h" |
28 | 27 |
29 namespace content { | 28 namespace content { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 if (output_surface_id != output_surface_id_) | 197 if (output_surface_id != output_surface_id_) |
199 return; | 198 return; |
200 ReclaimResources(&ack); | 199 ReclaimResources(&ack); |
201 } | 200 } |
202 | 201 |
203 bool CompositorOutputSurface::Send(IPC::Message* message) { | 202 bool CompositorOutputSurface::Send(IPC::Message* message) { |
204 return message_sender_->Send(message); | 203 return message_sender_->Send(message); |
205 } | 204 } |
206 | 205 |
207 } // namespace content | 206 } // namespace content |
OLD | NEW |