| OLD | NEW | 
|    1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2011 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/host_resource.h" |    9 #include "ppapi/proxy/host_resource.h" | 
|   10 #include "ppapi/proxy/interface_id.h" |   10 #include "ppapi/proxy/interface_id.h" | 
|   11 #include "ppapi/proxy/plugin_dispatcher.h" |   11 #include "ppapi/proxy/plugin_dispatcher.h" | 
|   12 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |   12 #include "ppapi/c/trusted/ppb_image_data_trusted.h" | 
|   13 #include "ppapi/proxy/plugin_resource_tracker.h" |   13 #include "ppapi/proxy/plugin_resource_tracker.h" | 
|   14 #include "ppapi/proxy/ppapi_messages.h" |   14 #include "ppapi/proxy/ppapi_messages.h" | 
|   15 #include "ppapi/proxy/ppb_audio_config_proxy.h" |   15 #include "ppapi/proxy/ppb_audio_config_proxy.h" | 
|   16 #include "ppapi/proxy/ppb_audio_proxy.h" |   16 #include "ppapi/proxy/ppb_audio_proxy.h" | 
|   17 #include "ppapi/proxy/ppb_buffer_proxy.h" |   17 #include "ppapi/proxy/ppb_buffer_proxy.h" | 
|   18 #include "ppapi/proxy/ppb_broker_proxy.h" |   18 #include "ppapi/proxy/ppb_broker_proxy.h" | 
|   19 #include "ppapi/proxy/ppb_context_3d_proxy.h" |   19 #include "ppapi/proxy/ppb_context_3d_proxy.h" | 
|   20 #include "ppapi/proxy/ppb_file_chooser_proxy.h" |   20 #include "ppapi/proxy/ppb_file_chooser_proxy.h" | 
|   21 #include "ppapi/proxy/ppb_file_ref_proxy.h" |   21 #include "ppapi/proxy/ppb_file_ref_proxy.h" | 
|   22 #include "ppapi/proxy/ppb_file_system_proxy.h" |   22 #include "ppapi/proxy/ppb_file_system_proxy.h" | 
|   23 #include "ppapi/proxy/ppb_flash_menu_proxy.h" |   23 #include "ppapi/proxy/ppb_flash_menu_proxy.h" | 
|   24 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" |   24 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" | 
|   25 #include "ppapi/proxy/ppb_flash_tcp_socket_proxy.h" |   25 #include "ppapi/proxy/ppb_flash_tcp_socket_proxy.h" | 
|   26 #include "ppapi/proxy/ppb_font_proxy.h" |   26 #include "ppapi/proxy/ppb_font_proxy.h" | 
|   27 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" |   27 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" | 
|   28 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" |  | 
|   29 #include "ppapi/proxy/ppb_image_data_proxy.h" |   28 #include "ppapi/proxy/ppb_image_data_proxy.h" | 
|   30 #include "ppapi/proxy/ppb_surface_3d_proxy.h" |   29 #include "ppapi/proxy/ppb_surface_3d_proxy.h" | 
|   31 #include "ppapi/proxy/ppb_url_loader_proxy.h" |   30 #include "ppapi/proxy/ppb_url_loader_proxy.h" | 
|   32 #include "ppapi/proxy/ppb_url_request_info_proxy.h" |   31 #include "ppapi/proxy/ppb_url_request_info_proxy.h" | 
|   33 #include "ppapi/shared_impl/font_impl.h" |   32 #include "ppapi/shared_impl/font_impl.h" | 
|   34 #include "ppapi/shared_impl/function_group_base.h" |   33 #include "ppapi/shared_impl/function_group_base.h" | 
|   35 #include "ppapi/thunk/enter.h" |   34 #include "ppapi/thunk/enter.h" | 
|   36 #include "ppapi/thunk/ppb_image_data_api.h" |   35 #include "ppapi/thunk/ppb_image_data_api.h" | 
|   37  |   36  | 
|   38 using ppapi::thunk::ResourceCreationAPI; |   37 using ppapi::thunk::ResourceCreationAPI; | 
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  187  |  186  | 
|  188   linked_ptr<ImageData> object(new ImageData(result, desc, image_handle)); |  187   linked_ptr<ImageData> object(new ImageData(result, desc, image_handle)); | 
|  189   return PluginResourceTracker::GetInstance()->AddResource(object); |  188   return PluginResourceTracker::GetInstance()->AddResource(object); | 
|  190 } |  189 } | 
|  191  |  190  | 
|  192 PP_Resource ResourceCreationProxy::CreateGraphics3D( |  191 PP_Resource ResourceCreationProxy::CreateGraphics3D( | 
|  193     PP_Instance instance, |  192     PP_Instance instance, | 
|  194     PP_Config3D_Dev config, |  193     PP_Config3D_Dev config, | 
|  195     PP_Resource share_context, |  194     PP_Resource share_context, | 
|  196     const int32_t* attrib_list) { |  195     const int32_t* attrib_list) { | 
|  197   return PPB_Graphics3D_Proxy::CreateProxyResource( |  196   NOTIMPLEMENTED();  // Not proxied yet. | 
|  198       instance, config, share_context, attrib_list); |  | 
|  199 } |  | 
|  200  |  | 
|  201 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( |  | 
|  202     PP_Instance instance, |  | 
|  203     PP_Config3D_Dev config, |  | 
|  204     PP_Resource share_context, |  | 
|  205     const int32_t* attrib_list) { |  | 
|  206   // Not proxied. The raw creation function is used only in the implementation |  | 
|  207   // of the proxy on the host side. |  | 
|  208   return 0; |  197   return 0; | 
|  209 } |  198 } | 
|  210  |  199  | 
|  211 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, |  200 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, | 
|  212                                                    PP_Bool vertical) { |  201                                                    PP_Bool vertical) { | 
|  213   NOTIMPLEMENTED();  // Not proxied yet. |  202   NOTIMPLEMENTED();  // Not proxied yet. | 
|  214   return 0; |  203   return 0; | 
|  215 } |  204 } | 
|  216  |  205  | 
|  217 PP_Resource ResourceCreationProxy::CreateSurface3D( |  206 PP_Resource ResourceCreationProxy::CreateSurface3D( | 
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  318       *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false); |  307       *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false); | 
|  319 #else |  308 #else | 
|  320       *result_image_handle = ImageData::HandleFromInt(handle); |  309       *result_image_handle = ImageData::HandleFromInt(handle); | 
|  321 #endif |  310 #endif | 
|  322     } |  311     } | 
|  323   } |  312   } | 
|  324 } |  313 } | 
|  325  |  314  | 
|  326 }  // namespace proxy |  315 }  // namespace proxy | 
|  327 }  // namespace pp |  316 }  // namespace pp | 
| OLD | NEW |