OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "build/build_config.h" | 5 #include "content/renderer/ggl.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
9 #include "base/weak_ptr.h" | 9 #include "base/weak_ptr.h" |
10 #include "chrome/renderer/command_buffer_proxy.h" | 10 #include "chrome/renderer/command_buffer_proxy.h" |
11 #include "chrome/renderer/ggl/ggl.h" | |
12 #include "chrome/renderer/gpu_channel_host.h" | 11 #include "chrome/renderer/gpu_channel_host.h" |
13 #include "chrome/renderer/gpu_video_service_host.h" | 12 #include "chrome/renderer/gpu_video_service_host.h" |
14 #include "chrome/renderer/media/gles2_video_decode_context.h" | |
15 #include "chrome/renderer/render_widget.h" | 13 #include "chrome/renderer/render_widget.h" |
| 14 #include "content/renderer/media/gles2_video_decode_context.h" |
16 #include "ipc/ipc_channel_handle.h" | 15 #include "ipc/ipc_channel_handle.h" |
17 | 16 |
18 | |
19 #if defined(ENABLE_GPU) | 17 #if defined(ENABLE_GPU) |
20 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 18 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
21 #include "gpu/command_buffer/client/gles2_implementation.h" | 19 #include "gpu/command_buffer/client/gles2_implementation.h" |
22 #include "gpu/command_buffer/client/gles2_lib.h" | 20 #include "gpu/command_buffer/client/gles2_lib.h" |
23 #include "gpu/command_buffer/common/constants.h" | 21 #include "gpu/command_buffer/common/constants.h" |
24 #include "gpu/common/gpu_trace_event.h" | 22 #include "gpu/common/gpu_trace_event.h" |
25 #include "gpu/GLES2/gles2_command_buffer.h" | 23 #include "gpu/GLES2/gles2_command_buffer.h" |
26 #endif // ENABLE_GPU | 24 #endif // ENABLE_GPU |
27 | 25 |
28 namespace ggl { | 26 namespace ggl { |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 | 596 |
599 return context->gles2_implementation(); | 597 return context->gles2_implementation(); |
600 } | 598 } |
601 | 599 |
602 CommandBufferProxy* GetCommandBufferProxy(Context* context) { | 600 CommandBufferProxy* GetCommandBufferProxy(Context* context) { |
603 DCHECK(context); | 601 DCHECK(context); |
604 return context->command_buffer(); | 602 return context->command_buffer(); |
605 } | 603 } |
606 | 604 |
607 } // namespace ggl | 605 } // namespace ggl |
OLD | NEW |