summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_graphics_3d_proxy.h
diff options
context:
space:
mode:
authorscshunt@google.com <scshunt@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-29 21:54:55 +0000
committerscshunt@google.com <scshunt@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-29 21:54:55 +0000
commit9ed07f8831639f9d6c74b9633262710af532df5b (patch)
tree3df992da5b2e95a9b09ab4661c5a9352e4fac2d9 /ppapi/proxy/ppb_graphics_3d_proxy.h
parentbdfa236676485f88c951929a7e5e2622541f9348 (diff)
downloadchromium_src-9ed07f8831639f9d6c74b9633262710af532df5b.zip
chromium_src-9ed07f8831639f9d6c74b9633262710af532df5b.tar.gz
chromium_src-9ed07f8831639f9d6c74b9633262710af532df5b.tar.bz2
Add the necessary plumbing mechanisms to ensure proper WebGL support inside the <browser> tag, which is a separate patch.
Known bugs: Not all aspects of context sharing work properly; in no models would render although the background animated properly. Requires a separate WebKit patch: https://bugs.webkit.org/show_bug.cgi?id=86504 R=fsamuel@chromium.org,piman@chromium.org,brettw@chromium.org BUG=None TEST=compiles Review URL: https://chromiumcodereview.appspot.com/10386145 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139385 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_graphics_3d_proxy.h')
-rw-r--r--ppapi/proxy/ppb_graphics_3d_proxy.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.h b/ppapi/proxy/ppb_graphics_3d_proxy.h
index c6975bf..521d90e 100644
--- a/ppapi/proxy/ppb_graphics_3d_proxy.h
+++ b/ppapi/proxy/ppb_graphics_3d_proxy.h
@@ -28,7 +28,7 @@ class Graphics3D : public PPB_Graphics3D_Shared {
explicit Graphics3D(const HostResource& resource);
virtual ~Graphics3D();
- bool Init();
+ bool Init(gpu::gles2::GLES2Implementation* share_gles2);
// Graphics3DTrusted API. These are not implemented in the proxy.
virtual PP_Bool InitCommandBuffer() OVERRIDE;
@@ -61,9 +61,10 @@ class PPB_Graphics3D_Proxy : public InterfaceProxy {
PPB_Graphics3D_Proxy(Dispatcher* dispatcher);
virtual ~PPB_Graphics3D_Proxy();
- static PP_Resource CreateProxyResource(PP_Instance instance,
- PP_Resource share_context,
- const int32_t* attrib_list);
+ static PP_Resource CreateProxyResource(
+ PP_Instance instance,
+ PP_Resource share_context,
+ const int32_t* attrib_list);
// InterfaceProxy implementation.
virtual bool OnMessageReceived(const IPC::Message& msg);
@@ -72,6 +73,7 @@ class PPB_Graphics3D_Proxy : public InterfaceProxy {
private:
void OnMsgCreate(PP_Instance instance,
+ HostResource share_context,
const std::vector<int32_t>& attribs,
HostResource* result);
void OnMsgInitCommandBuffer(const HostResource& context);