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

Unified Diff: ppapi/thunk/ppb_graphics_3d_thunk.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 side-by-side diff with in-line comments
Download patch
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..e6ce929482b206f654a3875f19258ddf3ca75dfe 100644
--- a/ppapi/thunk/ppb_graphics_3d_thunk.cc
+++ b/ppapi/thunk/ppb_graphics_3d_thunk.cc
@@ -29,8 +29,17 @@ PP_Resource Create(PP_Instance instance,
EnterResourceCreation enter(instance);
if (enter.failed())
return 0;
+
+ PPB_Graphics3D_API* share_api = NULL;
+ 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()->CreateGraphics3D(
- instance, share_context, attrib_list);
+ instance, share_api, attrib_list);
}
PP_Bool IsGraphics3D(PP_Resource resource) {

Powered by Google App Engine
This is Rietveld 408576698