OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_output_surface.h" | 5 #include "content/renderer/android/synchronous_compositor_output_surface.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "cc/output/compositor_frame.h" | 13 #include "cc/output/compositor_frame.h" |
14 #include "cc/output/context_provider.h" | 14 #include "cc/output/context_provider.h" |
15 #include "cc/output/output_surface_client.h" | 15 #include "cc/output/output_surface_client.h" |
16 #include "cc/output/software_output_device.h" | 16 #include "cc/output/software_output_device.h" |
17 #include "content/common/android/sync_compositor_messages.h" | 17 #include "content/common/android/sync_compositor_messages.h" |
18 #include "content/renderer/android/synchronous_compositor_external_begin_frame_s
ource.h" | |
19 #include "content/renderer/android/synchronous_compositor_filter.h" | 18 #include "content/renderer/android/synchronous_compositor_filter.h" |
20 #include "content/renderer/android/synchronous_compositor_registry.h" | 19 #include "content/renderer/android/synchronous_compositor_registry.h" |
21 #include "content/renderer/gpu/frame_swap_message_queue.h" | 20 #include "content/renderer/gpu/frame_swap_message_queue.h" |
22 #include "content/renderer/render_thread_impl.h" | 21 #include "content/renderer/render_thread_impl.h" |
23 #include "gpu/command_buffer/client/context_support.h" | 22 #include "gpu/command_buffer/client/context_support.h" |
24 #include "gpu/command_buffer/client/gles2_interface.h" | 23 #include "gpu/command_buffer/client/gles2_interface.h" |
25 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 24 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
26 #include "ipc/ipc_message.h" | 25 #include "ipc/ipc_message.h" |
27 #include "ipc/ipc_message_macros.h" | 26 #include "ipc/ipc_message_macros.h" |
28 #include "ipc/ipc_sender.h" | 27 #include "ipc/ipc_sender.h" |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 bool SynchronousCompositorOutputSurface::Send(IPC::Message* message) { | 302 bool SynchronousCompositorOutputSurface::Send(IPC::Message* message) { |
304 DCHECK(CalledOnValidThread()); | 303 DCHECK(CalledOnValidThread()); |
305 return sender_->Send(message); | 304 return sender_->Send(message); |
306 } | 305 } |
307 | 306 |
308 bool SynchronousCompositorOutputSurface::CalledOnValidThread() const { | 307 bool SynchronousCompositorOutputSurface::CalledOnValidThread() const { |
309 return thread_checker_.CalledOnValidThread(); | 308 return thread_checker_.CalledOnValidThread(); |
310 } | 309 } |
311 | 310 |
312 } // namespace content | 311 } // namespace content |
OLD | NEW |