| 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/command_buffer_proxy_impl.h" | |
| 19 #include "content/common/gpu/client/context_provider_command_buffer.h" | 18 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 20 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 19 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| 21 #include "content/common/view_messages.h" | 20 #include "content/common/view_messages.h" |
| 22 #include "content/public/common/content_switches.h" | 21 #include "content/public/common/content_switches.h" |
| 23 #include "content/renderer/gpu/frame_swap_message_queue.h" | 22 #include "content/renderer/gpu/frame_swap_message_queue.h" |
| 24 #include "content/renderer/render_thread_impl.h" | 23 #include "content/renderer/render_thread_impl.h" |
| 25 #include "gpu/command_buffer/client/context_support.h" | 24 #include "gpu/command_buffer/client/context_support.h" |
| 26 #include "gpu/command_buffer/client/gles2_interface.h" | 25 #include "gpu/command_buffer/client/gles2_interface.h" |
| 26 #include "gpu/ipc/client/command_buffer_proxy_impl.h" |
| 27 #include "ipc/ipc_sync_channel.h" | 27 #include "ipc/ipc_sync_channel.h" |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 | 30 |
| 31 CompositorOutputSurface::CompositorOutputSurface( | 31 CompositorOutputSurface::CompositorOutputSurface( |
| 32 int32_t routing_id, | 32 int32_t routing_id, |
| 33 uint32_t output_surface_id, | 33 uint32_t output_surface_id, |
| 34 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, | 34 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, |
| 35 const scoped_refptr<ContextProviderCommandBuffer>& worker_context_provider, | 35 const scoped_refptr<ContextProviderCommandBuffer>& worker_context_provider, |
| 36 scoped_ptr<cc::SoftwareOutputDevice> software_device, | 36 scoped_ptr<cc::SoftwareOutputDevice> software_device, |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 if (output_surface_id != output_surface_id_) | 191 if (output_surface_id != output_surface_id_) |
| 192 return; | 192 return; |
| 193 ReclaimResources(&ack); | 193 ReclaimResources(&ack); |
| 194 } | 194 } |
| 195 | 195 |
| 196 bool CompositorOutputSurface::Send(IPC::Message* message) { | 196 bool CompositorOutputSurface::Send(IPC::Message* message) { |
| 197 return message_sender_->Send(message); | 197 return message_sender_->Send(message); |
| 198 } | 198 } |
| 199 | 199 |
| 200 } // namespace content | 200 } // namespace content |
| OLD | NEW |