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

Unified Diff: ppapi/proxy/ppb_graphics_3d_proxy.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: 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/proxy/ppb_graphics_3d_proxy.cc
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.cc b/ppapi/proxy/ppb_graphics_3d_proxy.cc
index 75f7d83a920b8f36c5e01b90c0f47b9195c3a4ab..4ccd410332593992f7060c6b9844a25d216975ad 100644
--- a/ppapi/proxy/ppb_graphics_3d_proxy.cc
+++ b/ppapi/proxy/ppb_graphics_3d_proxy.cc
@@ -170,7 +170,11 @@ PP_Resource PPB_Graphics3D_Proxy::CreateProxyResource(
HostResource result;
dispatcher->Send(new PpapiHostMsg_PPBGraphics3D_Create(
- API_ID_PPB_GRAPHICS_3D, instance, attribs, &result));
+ API_ID_PPB_GRAPHICS_3D,
+ instance,
+ ppapi::HostResource(),
piman 2012/05/15 20:59:17 I don't understand, don't you want to pass the sha
(scshunt) 2012/05/16 16:39:43 I haven't touched this method. Possibly yes; this
Fady Samuel 2012/05/16 16:43:50 Yup, this was some stuff I changed when I started
piman 2012/05/16 17:12:00 Note: it's not trivially creating a HostResource(i
+ attribs,
+ &result));
if (result.is_null())
return 0;
@@ -214,6 +218,7 @@ bool PPB_Graphics3D_Proxy::OnMessageReceived(const IPC::Message& msg) {
}
void PPB_Graphics3D_Proxy::OnMsgCreate(PP_Instance instance,
+ HostResource shared_context,
const std::vector<int32_t>& attribs,
HostResource* result) {
if (attribs.empty() || attribs.back() != PP_GRAPHICS3DATTRIB_NONE)
@@ -221,9 +226,11 @@ void PPB_Graphics3D_Proxy::OnMsgCreate(PP_Instance instance,
thunk::EnterResourceCreation enter(instance);
if (enter.succeeded()) {
+ PP_Resource context = shared_context.host_resource();
result->SetHostResource(
- instance,
- enter.functions()->CreateGraphics3DRaw(instance, 0, &attribs.front()));
+ instance,
+ enter.functions()->CreateGraphics3DRaw(instance, context,
+ &attribs.front()));
}
}

Powered by Google App Engine
This is Rietveld 408576698