| 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/gpu_channel_host.h" | 8 #include "content/common/gpu/client/gpu_channel_host.h" |
| 9 #include "content/common/gpu/client/command_buffer_proxy.h" | |
| 10 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 9 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| 11 #include "content/renderer/pepper/pepper_parent_context_provider.h" | 10 #include "content/renderer/pepper/pepper_parent_context_provider.h" |
| 12 #include "content/renderer/render_thread_impl.h" | 11 #include "content/renderer/render_thread_impl.h" |
| 13 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 14 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 13 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
| 15 #include "gpu/command_buffer/client/gles2_implementation.h" | 14 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 15 #include "gpu/ipc/command_buffer_proxy.h" |
| 16 #include "ppapi/c/pp_graphics_3d.h" | 16 #include "ppapi/c/pp_graphics_3d.h" |
| 17 #include "ui/gfx/gl/gpu_preference.h" | 17 #include "ui/gfx/gl/gpu_preference.h" |
| 18 | 18 |
| 19 #ifdef ENABLE_GPU | 19 #ifdef ENABLE_GPU |
| 20 | 20 |
| 21 PlatformContext3DImpl::PlatformContext3DImpl( | 21 PlatformContext3DImpl::PlatformContext3DImpl( |
| 22 PepperParentContextProvider* parent_context_provider) | 22 PepperParentContextProvider* parent_context_provider) |
| 23 : parent_context_provider_(parent_context_provider), | 23 : parent_context_provider_(parent_context_provider), |
| 24 parent_texture_id_(0), | 24 parent_texture_id_(0), |
| 25 has_alpha_(false), | 25 has_alpha_(false), |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 } | 195 } |
| 196 | 196 |
| 197 void PlatformContext3DImpl::OnConsoleMessage(const std::string& msg, int id) { | 197 void PlatformContext3DImpl::OnConsoleMessage(const std::string& msg, int id) { |
| 198 DCHECK(command_buffer_); | 198 DCHECK(command_buffer_); |
| 199 | 199 |
| 200 if (!console_message_callback_.is_null()) | 200 if (!console_message_callback_.is_null()) |
| 201 console_message_callback_.Run(msg, id); | 201 console_message_callback_.Run(msg, id); |
| 202 } | 202 } |
| 203 | 203 |
| 204 #endif // ENABLE_GPU | 204 #endif // ENABLE_GPU |
| OLD | NEW |