| 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 "ppapi/proxy/resource_creation_proxy.h" | 5 #include "ppapi/proxy/resource_creation_proxy.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
| 9 #include "ppapi/c/pp_size.h" | 9 #include "ppapi/c/pp_size.h" |
| 10 #include "ppapi/proxy/audio_encoder_resource.h" | 10 #include "ppapi/proxy/audio_encoder_resource.h" |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 PP_Instance instance, | 258 PP_Instance instance, |
| 259 PP_Resource share_context, | 259 PP_Resource share_context, |
| 260 const int32_t* attrib_list) { | 260 const int32_t* attrib_list) { |
| 261 return PPB_Graphics3D_Proxy::CreateProxyResource( | 261 return PPB_Graphics3D_Proxy::CreateProxyResource( |
| 262 instance, share_context, attrib_list); | 262 instance, share_context, attrib_list); |
| 263 } | 263 } |
| 264 | 264 |
| 265 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( | 265 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( |
| 266 PP_Instance instance, | 266 PP_Instance instance, |
| 267 PP_Resource share_context, | 267 PP_Resource share_context, |
| 268 const gpu::gles2::ContextCreationAttribHelper& attrib_helper, | 268 const int32_t* attrib_list, |
| 269 gpu::Capabilities* capabilities, | 269 gpu::Capabilities* capabilities, |
| 270 base::SharedMemoryHandle* shared_state, | 270 base::SharedMemoryHandle* shared_state, |
| 271 gpu::CommandBufferId* command_buffer_id) { | 271 gpu::CommandBufferId* command_buffer_id) { |
| 272 // Not proxied. The raw creation function is used only in the implementation | 272 // Not proxied. The raw creation function is used only in the implementation |
| 273 // of the proxy on the host side. | 273 // of the proxy on the host side. |
| 274 return 0; | 274 return 0; |
| 275 } | 275 } |
| 276 | 276 |
| 277 PP_Resource ResourceCreationProxy::CreateHostResolver(PP_Instance instance) { | 277 PP_Resource ResourceCreationProxy::CreateHostResolver(PP_Instance instance) { |
| 278 return (new HostResolverResource(GetConnection(), instance))->GetReference(); | 278 return (new HostResolverResource(GetConnection(), instance))->GetReference(); |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 506 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 507 return false; | 507 return false; |
| 508 } | 508 } |
| 509 | 509 |
| 510 Connection ResourceCreationProxy::GetConnection() { | 510 Connection ResourceCreationProxy::GetConnection() { |
| 511 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 511 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
| 512 } | 512 } |
| 513 | 513 |
| 514 } // namespace proxy | 514 } // namespace proxy |
| 515 } // namespace ppapi | 515 } // namespace ppapi |
| OLD | NEW |