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

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

Issue 10386145: Add the necessary plumbing mechanisms to ensure proper WebGL support inside the <browser> tag, whic… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Nits picked Created 8 years, 7 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
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/c/trusted/ppb_image_data_trusted.h" 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
10 #include "ppapi/proxy/plugin_dispatcher.h" 10 #include "ppapi/proxy/plugin_dispatcher.h"
(...skipping 26 matching lines...) Expand all
37 #include "ppapi/shared_impl/host_resource.h" 37 #include "ppapi/shared_impl/host_resource.h"
38 #include "ppapi/shared_impl/ppb_audio_config_shared.h" 38 #include "ppapi/shared_impl/ppb_audio_config_shared.h"
39 #include "ppapi/shared_impl/ppb_input_event_shared.h" 39 #include "ppapi/shared_impl/ppb_input_event_shared.h"
40 #include "ppapi/shared_impl/ppb_resource_array_shared.h" 40 #include "ppapi/shared_impl/ppb_resource_array_shared.h"
41 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" 41 #include "ppapi/shared_impl/ppb_url_request_info_shared.h"
42 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" 42 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h"
43 #include "ppapi/shared_impl/var.h" 43 #include "ppapi/shared_impl/var.h"
44 #include "ppapi/thunk/enter.h" 44 #include "ppapi/thunk/enter.h"
45 #include "ppapi/thunk/ppb_image_data_api.h" 45 #include "ppapi/thunk/ppb_image_data_api.h"
46 46
47 using ppapi::thunk::PPB_Graphics3D_API;
47 using ppapi::thunk::ResourceCreationAPI; 48 using ppapi::thunk::ResourceCreationAPI;
48 49
49 namespace ppapi { 50 namespace ppapi {
50 namespace proxy { 51 namespace proxy {
51 52
52 ResourceCreationProxy::ResourceCreationProxy(Dispatcher* dispatcher) 53 ResourceCreationProxy::ResourceCreationProxy(Dispatcher* dispatcher)
53 : InterfaceProxy(dispatcher) { 54 : InterfaceProxy(dispatcher) {
54 } 55 }
55 56
56 ResourceCreationProxy::~ResourceCreationProxy() { 57 ResourceCreationProxy::~ResourceCreationProxy() {
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( 255 PP_Resource ResourceCreationProxy::CreateNetworkMonitor(
255 PP_Instance instance, 256 PP_Instance instance,
256 PPB_NetworkMonitor_Callback callback, 257 PPB_NetworkMonitor_Callback callback,
257 void* user_data) { 258 void* user_data) {
258 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource( 259 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource(
259 instance, callback, user_data); 260 instance, callback, user_data);
260 } 261 }
261 262
262 PP_Resource ResourceCreationProxy::CreateGraphics3D( 263 PP_Resource ResourceCreationProxy::CreateGraphics3D(
263 PP_Instance instance, 264 PP_Instance instance,
264 PP_Resource share_context, 265 PPB_Graphics3D_API* share_context,
265 const int32_t* attrib_list) { 266 const int32_t* attrib_list) {
266 return PPB_Graphics3D_Proxy::CreateProxyResource( 267 return PPB_Graphics3D_Proxy::CreateProxyResource(
267 instance, share_context, attrib_list); 268 instance, share_context, attrib_list);
268 } 269 }
269 270
270 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( 271 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw(
271 PP_Instance instance, 272 PP_Instance instance,
272 PP_Resource share_context, 273 PPB_Graphics3D_API* share_context,
273 const int32_t* attrib_list) { 274 const int32_t* attrib_list) {
274 // Not proxied. The raw creation function is used only in the implementation 275 // Not proxied. The raw creation function is used only in the implementation
275 // of the proxy on the host side. 276 // of the proxy on the host side.
276 return 0; 277 return 0;
277 } 278 }
278 279
279 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, 280 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance,
280 PP_Bool vertical) { 281 PP_Bool vertical) {
281 NOTIMPLEMENTED(); // Not proxied yet. 282 NOTIMPLEMENTED(); // Not proxied yet.
282 return 0; 283 return 0;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 bool ResourceCreationProxy::Send(IPC::Message* msg) { 343 bool ResourceCreationProxy::Send(IPC::Message* msg) {
343 return dispatcher()->Send(msg); 344 return dispatcher()->Send(msg);
344 } 345 }
345 346
346 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 347 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
347 return false; 348 return false;
348 } 349 }
349 350
350 } // namespace proxy 351 } // namespace proxy
351 } // namespace ppapi 352 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698