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

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

Issue 10830197: Revert 150343 - Add gpu targets to untrusted build, and add Graphics3D code to untrusted build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/ppb_image_data_shared.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/file_chooser_resource.h" 10 #include "ppapi/proxy/file_chooser_resource.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 return CreateImageData(instance, format, size, init_to_zero); 200 return CreateImageData(instance, format, size, init_to_zero);
201 } 201 }
202 202
203 PP_Resource ResourceCreationProxy::CreateGraphics2D(PP_Instance instance, 203 PP_Resource ResourceCreationProxy::CreateGraphics2D(PP_Instance instance,
204 const PP_Size& size, 204 const PP_Size& size,
205 PP_Bool is_always_opaque) { 205 PP_Bool is_always_opaque) {
206 return PPB_Graphics2D_Proxy::CreateProxyResource(instance, size, 206 return PPB_Graphics2D_Proxy::CreateProxyResource(instance, size,
207 is_always_opaque); 207 is_always_opaque);
208 } 208 }
209 209
210 PP_Resource ResourceCreationProxy::CreateGraphics3D(
211 PP_Instance instance,
212 PP_Resource share_context,
213 const int32_t* attrib_list) {
214 printf("ResourceCreationProxy::CreateGraphics3D\n");
215 return PPB_Graphics3D_Proxy::CreateProxyResource(
216 instance, share_context, attrib_list);
217 }
218
219 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw(
220 PP_Instance instance,
221 PP_Resource share_context,
222 const int32_t* attrib_list) {
223 printf("ResourceCreationProxy::CreateGraphics3DRaw\n");
224 // Not proxied. The raw creation function is used only in the implementation
225 // of the proxy on the host side.
226 return 0;
227 }
228
229 #if !defined(OS_NACL) 210 #if !defined(OS_NACL)
230 PP_Resource ResourceCreationProxy::CreateAudioInput0_1( 211 PP_Resource ResourceCreationProxy::CreateAudioInput0_1(
231 PP_Instance instance, 212 PP_Instance instance,
232 PP_Resource config_id, 213 PP_Resource config_id,
233 PPB_AudioInput_Callback audio_input_callback, 214 PPB_AudioInput_Callback audio_input_callback,
234 void* user_data) { 215 void* user_data) {
235 return PPB_AudioInput_Proxy::CreateProxyResource0_1(instance, config_id, 216 return PPB_AudioInput_Proxy::CreateProxyResource0_1(instance, config_id,
236 audio_input_callback, 217 audio_input_callback,
237 user_data); 218 user_data);
238 } 219 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 } 277 }
297 278
298 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( 279 PP_Resource ResourceCreationProxy::CreateNetworkMonitor(
299 PP_Instance instance, 280 PP_Instance instance,
300 PPB_NetworkMonitor_Callback callback, 281 PPB_NetworkMonitor_Callback callback,
301 void* user_data) { 282 void* user_data) {
302 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource( 283 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource(
303 instance, callback, user_data); 284 instance, callback, user_data);
304 } 285 }
305 286
287 PP_Resource ResourceCreationProxy::CreateGraphics3D(
288 PP_Instance instance,
289 PP_Resource share_context,
290 const int32_t* attrib_list) {
291 return PPB_Graphics3D_Proxy::CreateProxyResource(
292 instance, share_context, attrib_list);
293 }
294
295 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw(
296 PP_Instance instance,
297 PP_Resource share_context,
298 const int32_t* attrib_list) {
299 // Not proxied. The raw creation function is used only in the implementation
300 // of the proxy on the host side.
301 return 0;
302 }
303
306 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, 304 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance,
307 PP_Bool vertical) { 305 PP_Bool vertical) {
308 NOTIMPLEMENTED(); // Not proxied yet. 306 NOTIMPLEMENTED(); // Not proxied yet.
309 return 0; 307 return 0;
310 } 308 }
311 309
312 PP_Resource ResourceCreationProxy::CreateTalk(PP_Instance instance) { 310 PP_Resource ResourceCreationProxy::CreateTalk(PP_Instance instance) {
313 return PPB_Talk_Private_Proxy::CreateProxyResource(instance); 311 return PPB_Talk_Private_Proxy::CreateProxyResource(instance);
314 } 312 }
315 313
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 bool ResourceCreationProxy::Send(IPC::Message* msg) { 360 bool ResourceCreationProxy::Send(IPC::Message* msg) {
363 return dispatcher()->Send(msg); 361 return dispatcher()->Send(msg);
364 } 362 }
365 363
366 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 364 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
367 return false; 365 return false;
368 } 366 }
369 367
370 } // namespace proxy 368 } // namespace proxy
371 } // namespace ppapi 369 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/ppb_image_data_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698