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/pepper/pepper_platform_context_3d_impl.h" | 5 #include "content/renderer/pepper/pepper_platform_context_3d_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "content/common/gpu/client/context_provider_command_buffer.h" | 8 #include "content/common/gpu/client/context_provider_command_buffer.h" |
9 #include "content/common/gpu/client/gpu_channel_host.h" | 9 #include "content/common/gpu/client/gpu_channel_host.h" |
10 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 10 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
11 #include "content/renderer/render_thread_impl.h" | 11 #include "content/renderer/render_thread_impl.h" |
12 #include "googleurl/src/gurl.h" | |
13 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 12 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
14 #include "gpu/command_buffer/client/gles2_implementation.h" | 13 #include "gpu/command_buffer/client/gles2_implementation.h" |
15 #include "gpu/ipc/command_buffer_proxy.h" | 14 #include "gpu/ipc/command_buffer_proxy.h" |
16 #include "ppapi/c/pp_graphics_3d.h" | 15 #include "ppapi/c/pp_graphics_3d.h" |
17 #include "ui/gl/gpu_preference.h" | 16 #include "ui/gl/gpu_preference.h" |
| 17 #include "url/gurl.h" |
18 | 18 |
19 #ifdef ENABLE_GPU | 19 #ifdef ENABLE_GPU |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 PlatformContext3DImpl::PlatformContext3DImpl() | 23 PlatformContext3DImpl::PlatformContext3DImpl() |
24 : has_alpha_(false), | 24 : has_alpha_(false), |
25 command_buffer_(NULL), | 25 command_buffer_(NULL), |
26 weak_ptr_factory_(this) { | 26 weak_ptr_factory_(this) { |
27 } | 27 } |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 void PlatformContext3DImpl::OnConsoleMessage(const std::string& msg, int id) { | 163 void PlatformContext3DImpl::OnConsoleMessage(const std::string& msg, int id) { |
164 DCHECK(command_buffer_); | 164 DCHECK(command_buffer_); |
165 | 165 |
166 if (!console_message_callback_.is_null()) | 166 if (!console_message_callback_.is_null()) |
167 console_message_callback_.Run(msg, id); | 167 console_message_callback_.Run(msg, id); |
168 } | 168 } |
169 | 169 |
170 } // namespace content | 170 } // namespace content |
171 | 171 |
172 #endif // ENABLE_GPU | 172 #endif // ENABLE_GPU |
OLD | NEW |