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

Side by Side Diff: ppapi/proxy/resource_creation_proxy.cc

Issue 1345813002: Added a unique command buffer ID for command buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad merge Created 5 years, 3 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
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/thunk/resource_creation_api.h » ('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 "ppapi/proxy/resource_creation_proxy.h" 5 #include "ppapi/proxy/resource_creation_proxy.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/pp_size.h" 8 #include "ppapi/c/pp_size.h"
9 #include "ppapi/proxy/audio_encoder_resource.h" 9 #include "ppapi/proxy/audio_encoder_resource.h"
10 #include "ppapi/proxy/audio_input_resource.h" 10 #include "ppapi/proxy/audio_input_resource.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 const int32_t* attrib_list) { 258 const int32_t* attrib_list) {
259 return PPB_Graphics3D_Proxy::CreateProxyResource( 259 return PPB_Graphics3D_Proxy::CreateProxyResource(
260 instance, share_context, attrib_list); 260 instance, share_context, attrib_list);
261 } 261 }
262 262
263 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( 263 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw(
264 PP_Instance instance, 264 PP_Instance instance,
265 PP_Resource share_context, 265 PP_Resource share_context,
266 const int32_t* attrib_list, 266 const int32_t* attrib_list,
267 gpu::Capabilities* capabilities, 267 gpu::Capabilities* capabilities,
268 base::SharedMemoryHandle* shared_state) { 268 base::SharedMemoryHandle* shared_state,
269 uint64_t* command_buffer_id) {
269 // Not proxied. The raw creation function is used only in the implementation 270 // Not proxied. The raw creation function is used only in the implementation
270 // of the proxy on the host side. 271 // of the proxy on the host side.
271 return 0; 272 return 0;
272 } 273 }
273 274
274 PP_Resource ResourceCreationProxy::CreateHostResolver(PP_Instance instance) { 275 PP_Resource ResourceCreationProxy::CreateHostResolver(PP_Instance instance) {
275 return (new HostResolverResource(GetConnection(), instance))->GetReference(); 276 return (new HostResolverResource(GetConnection(), instance))->GetReference();
276 } 277 }
277 278
278 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate( 279 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate(
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 500 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
500 return false; 501 return false;
501 } 502 }
502 503
503 Connection ResourceCreationProxy::GetConnection() { 504 Connection ResourceCreationProxy::GetConnection() {
504 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 505 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
505 } 506 }
506 507
507 } // namespace proxy 508 } // namespace proxy
508 } // namespace ppapi 509 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698