Chromium Code Reviews| Index: ppapi/thunk/ppb_graphics_3d_thunk.cc |
| diff --git a/ppapi/thunk/ppb_graphics_3d_thunk.cc b/ppapi/thunk/ppb_graphics_3d_thunk.cc |
| index edc19caae07710c4c1750b14269850496f0a42de..b75b587bb15e153055d3c858d2494a3d8d419dc0 100644 |
| --- a/ppapi/thunk/ppb_graphics_3d_thunk.cc |
| +++ b/ppapi/thunk/ppb_graphics_3d_thunk.cc |
| @@ -27,10 +27,11 @@ PP_Resource Create(PP_Instance instance, |
| PP_Resource share_context, |
| const int32_t attrib_list[]) { |
| EnterResourceCreation enter(instance); |
| - if (enter.failed()) |
| + EnterGraphics3D enter_share(share_context, true); |
|
piman
2012/05/16 23:38:45
This should be EnterResourceNoLock, since the lock
(scshunt)
2012/05/17 16:55:45
Ah ok.
|
| + if (enter.failed() || enter_share.failed()) |
| return 0; |
| return enter.functions()->CreateGraphics3D( |
| - instance, share_context, attrib_list); |
| + instance, enter_share.object(), attrib_list); |
| } |
| PP_Bool IsGraphics3D(PP_Resource resource) { |