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 "content/renderer/ggl.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" | |
11 #include "chrome/renderer/gpu_channel_host.h" | |
12 #include "chrome/renderer/gpu_video_service_host.h" | |
13 #include "chrome/renderer/render_widget.h" | 10 #include "chrome/renderer/render_widget.h" |
| 11 #include "content/renderer/command_buffer_proxy.h" |
| 12 #include "content/renderer/gpu_channel_host.h" |
| 13 #include "content/renderer/gpu_video_service_host.h" |
14 #include "content/renderer/media/gles2_video_decode_context.h" | 14 #include "content/renderer/media/gles2_video_decode_context.h" |
15 #include "ipc/ipc_channel_handle.h" | 15 #include "ipc/ipc_channel_handle.h" |
16 | 16 |
17 #if defined(ENABLE_GPU) | 17 #if defined(ENABLE_GPU) |
18 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 18 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
19 #include "gpu/command_buffer/client/gles2_implementation.h" | 19 #include "gpu/command_buffer/client/gles2_implementation.h" |
20 #include "gpu/command_buffer/client/gles2_lib.h" | 20 #include "gpu/command_buffer/client/gles2_lib.h" |
21 #include "gpu/command_buffer/common/constants.h" | 21 #include "gpu/command_buffer/common/constants.h" |
22 #include "gpu/common/gpu_trace_event.h" | 22 #include "gpu/common/gpu_trace_event.h" |
23 #include "gpu/GLES2/gles2_command_buffer.h" | 23 #include "gpu/GLES2/gles2_command_buffer.h" |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 | 596 |
597 return context->gles2_implementation(); | 597 return context->gles2_implementation(); |
598 } | 598 } |
599 | 599 |
600 CommandBufferProxy* GetCommandBufferProxy(Context* context) { | 600 CommandBufferProxy* GetCommandBufferProxy(Context* context) { |
601 DCHECK(context); | 601 DCHECK(context); |
602 return context->command_buffer(); | 602 return context->command_buffer(); |
603 } | 603 } |
604 | 604 |
605 } // namespace ggl | 605 } // namespace ggl |
OLD | NEW |