Chromium Code Reviews| Index: ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc |
| diff --git a/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc b/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc |
| index 48f6ed1d4d62739215573a00d4f41e8c90465ce0..906b14ca67217e4ca221558fea7f0e8db5e9cccb 100644 |
| --- a/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc |
| +++ b/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc |
| @@ -26,8 +26,17 @@ PP_Resource CreateRaw(PP_Instance instance, |
| EnterResourceCreation enter(instance); |
| if (enter.failed()) |
| return 0; |
| + |
| + PPB_Graphics3D_API* share_api = NULL; |
|
brettw
2012/05/25 23:19:41
This code should be in the impl/proxy files. I wan
|
| + if (share_context) { |
| + EnterResourceNoLock<PPB_Graphics3D_API> enter_share(instance, true); |
| + if (enter_share.failed()) |
| + return 0; |
| + share_api = enter_share.object(); |
| + } |
| + |
| return enter.functions()->CreateGraphics3DRaw( |
| - instance, share_context, attrib_list); |
| + instance, share_api, attrib_list); |
| } |
| PP_Bool InitCommandBuffer(PP_Resource context) { |