| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 return PPB_Graphics3D_Proxy::CreateProxyResource( | 260 return PPB_Graphics3D_Proxy::CreateProxyResource( |
| 261 instance, share_context, attrib_list); | 261 instance, share_context, attrib_list); |
| 262 } | 262 } |
| 263 | 263 |
| 264 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( | 264 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( |
| 265 PP_Instance instance, | 265 PP_Instance instance, |
| 266 PP_Resource share_context, | 266 PP_Resource share_context, |
| 267 const int32_t* attrib_list, | 267 const int32_t* attrib_list, |
| 268 gpu::Capabilities* capabilities, | 268 gpu::Capabilities* capabilities, |
| 269 base::SharedMemoryHandle* shared_state, | 269 base::SharedMemoryHandle* shared_state, |
| 270 uint64_t* command_buffer_id) { | 270 gpu::CommandBufferId* command_buffer_id) { |
| 271 // Not proxied. The raw creation function is used only in the implementation | 271 // Not proxied. The raw creation function is used only in the implementation |
| 272 // of the proxy on the host side. | 272 // of the proxy on the host side. |
| 273 return 0; | 273 return 0; |
| 274 } | 274 } |
| 275 | 275 |
| 276 PP_Resource ResourceCreationProxy::CreateHostResolver(PP_Instance instance) { | 276 PP_Resource ResourceCreationProxy::CreateHostResolver(PP_Instance instance) { |
| 277 return (new HostResolverResource(GetConnection(), instance))->GetReference(); | 277 return (new HostResolverResource(GetConnection(), instance))->GetReference(); |
| 278 } | 278 } |
| 279 | 279 |
| 280 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate( | 280 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate( |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 501 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 502 return false; | 502 return false; |
| 503 } | 503 } |
| 504 | 504 |
| 505 Connection ResourceCreationProxy::GetConnection() { | 505 Connection ResourceCreationProxy::GetConnection() { |
| 506 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 506 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
| 507 } | 507 } |
| 508 | 508 |
| 509 } // namespace proxy | 509 } // namespace proxy |
| 510 } // namespace ppapi | 510 } // namespace ppapi |
| OLD | NEW |