Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: content/renderer/pepper/pepper_platform_context_3d_impl.cc

Issue 9904005: PpapiCommandBufferProxy implements CommandBufferProxy. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed Windows Build. Thanks girard@! Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/media/renderer_gpu_video_decoder_factories.cc ('k') | gpu/gpu_ipc.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/media/renderer_gpu_video_decoder_factories.cc ('k') | gpu/gpu_ipc.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698