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

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

Issue 10837145: 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
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
210 #if !defined(OS_NACL) 229 #if !defined(OS_NACL)
211 PP_Resource ResourceCreationProxy::CreateAudioInput0_1( 230 PP_Resource ResourceCreationProxy::CreateAudioInput0_1(
212 PP_Instance instance, 231 PP_Instance instance,
213 PP_Resource config_id, 232 PP_Resource config_id,
214 PPB_AudioInput_Callback audio_input_callback, 233 PPB_AudioInput_Callback audio_input_callback,
215 void* user_data) { 234 void* user_data) {
216 return PPB_AudioInput_Proxy::CreateProxyResource0_1(instance, config_id, 235 return PPB_AudioInput_Proxy::CreateProxyResource0_1(instance, config_id,
217 audio_input_callback, 236 audio_input_callback,
218 user_data); 237 user_data);
219 } 238 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 } 296 }
278 297
279 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( 298 PP_Resource ResourceCreationProxy::CreateNetworkMonitor(
280 PP_Instance instance, 299 PP_Instance instance,
281 PPB_NetworkMonitor_Callback callback, 300 PPB_NetworkMonitor_Callback callback,
282 void* user_data) { 301 void* user_data) {
283 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource( 302 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource(
284 instance, callback, user_data); 303 instance, callback, user_data);
285 } 304 }
286 305
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
304 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, 306 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance,
305 PP_Bool vertical) { 307 PP_Bool vertical) {
306 NOTIMPLEMENTED(); // Not proxied yet. 308 NOTIMPLEMENTED(); // Not proxied yet.
307 return 0; 309 return 0;
308 } 310 }
309 311
310 PP_Resource ResourceCreationProxy::CreateTalk(PP_Instance instance) { 312 PP_Resource ResourceCreationProxy::CreateTalk(PP_Instance instance) {
311 return PPB_Talk_Private_Proxy::CreateProxyResource(instance); 313 return PPB_Talk_Private_Proxy::CreateProxyResource(instance);
312 } 314 }
313 315
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 bool ResourceCreationProxy::Send(IPC::Message* msg) { 362 bool ResourceCreationProxy::Send(IPC::Message* msg) {
361 return dispatcher()->Send(msg); 363 return dispatcher()->Send(msg);
362 } 364 }
363 365
364 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 366 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
365 return false; 367 return false;
366 } 368 }
367 369
368 } // namespace proxy 370 } // namespace proxy
369 } // namespace ppapi 371 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698