| 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 "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_input_resource.h" | 9 #include "ppapi/proxy/audio_input_resource.h" |
| 10 #include "ppapi/proxy/camera_device_resource.h" | 10 #include "ppapi/proxy/camera_device_resource.h" |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 const int32_t* attrib_list) { | 253 const int32_t* attrib_list) { |
| 254 return PPB_Graphics3D_Proxy::CreateProxyResource( | 254 return PPB_Graphics3D_Proxy::CreateProxyResource( |
| 255 instance, share_context, attrib_list); | 255 instance, share_context, attrib_list); |
| 256 } | 256 } |
| 257 | 257 |
| 258 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( | 258 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( |
| 259 PP_Instance instance, | 259 PP_Instance instance, |
| 260 PP_Resource share_context, | 260 PP_Resource share_context, |
| 261 const int32_t* attrib_list, | 261 const int32_t* attrib_list, |
| 262 gpu::Capabilities* capabilities, | 262 gpu::Capabilities* capabilities, |
| 263 base::SharedMemoryHandle* shared_state) { | 263 base::SharedMemoryHandle* shared_state, |
| 264 uint64_t* command_buffer_id) { |
| 264 // Not proxied. The raw creation function is used only in the implementation | 265 // Not proxied. The raw creation function is used only in the implementation |
| 265 // of the proxy on the host side. | 266 // of the proxy on the host side. |
| 266 return 0; | 267 return 0; |
| 267 } | 268 } |
| 268 | 269 |
| 269 PP_Resource ResourceCreationProxy::CreateHostResolver(PP_Instance instance) { | 270 PP_Resource ResourceCreationProxy::CreateHostResolver(PP_Instance instance) { |
| 270 return (new HostResolverResource(GetConnection(), instance))->GetReference(); | 271 return (new HostResolverResource(GetConnection(), instance))->GetReference(); |
| 271 } | 272 } |
| 272 | 273 |
| 273 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate( | 274 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate( |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 495 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 495 return false; | 496 return false; |
| 496 } | 497 } |
| 497 | 498 |
| 498 Connection ResourceCreationProxy::GetConnection() { | 499 Connection ResourceCreationProxy::GetConnection() { |
| 499 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 500 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
| 500 } | 501 } |
| 501 | 502 |
| 502 } // namespace proxy | 503 } // namespace proxy |
| 503 } // namespace ppapi | 504 } // namespace ppapi |
| OLD | NEW |