summaryrefslogtreecommitdiffstats
path: root/webkit/gpu/webgraphicscontext3d_in_process_impl.h
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-15 22:52:07 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-15 22:52:07 +0000
commit52ee7cf440651a46bbfabb57e6b482f9d6d7db6b (patch)
tree2a3fdbb44af7b4f60b16b043a73b68d5bda05296 /webkit/gpu/webgraphicscontext3d_in_process_impl.h
parent2dba717e66fbaadb77cf768c0855c683f5bc4a9a (diff)
downloadchromium_src-52ee7cf440651a46bbfabb57e6b482f9d6d7db6b.zip
chromium_src-52ee7cf440651a46bbfabb57e6b482f9d6d7db6b.tar.gz
chromium_src-52ee7cf440651a46bbfabb57e6b482f9d6d7db6b.tar.bz2
Allow specification of the share group in WebGraphicsContext3DInProcessImpl
BUG=None TEST=Aura + WebKit compositor Review URL: http://codereview.chromium.org/8301019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105691 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/gpu/webgraphicscontext3d_in_process_impl.h')
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_impl.h
index 86cbcc6..6bb8926 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.h
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.h
@@ -21,6 +21,7 @@
namespace gfx {
class GLContext;
class GLSurface;
+class GLShareGroup;
}
using WebKit::WGC3Dchar;
@@ -54,7 +55,10 @@ class WebGraphicsContext3DInProcessImpl : public WebGraphicsContext3D {
public:
// Creates a WebGraphicsContext3DInProcessImpl for a given window. If window
// is gfx::kNullPluginWindow, then it creates an offscreen context.
- WebGraphicsContext3DInProcessImpl(gfx::PluginWindowHandle window);
+ // share_group is the group this context shares namespaces with. It's only
+ // used for window-bound countexts.
+ WebGraphicsContext3DInProcessImpl(gfx::PluginWindowHandle window,
+ gfx::GLShareGroup* share_group);
virtual ~WebGraphicsContext3DInProcessImpl();
//----------------------------------------------------------------------
@@ -493,6 +497,7 @@ class WebGraphicsContext3DInProcessImpl : public WebGraphicsContext3D {
ShHandle fragment_compiler_;
ShHandle vertex_compiler_;
gfx::PluginWindowHandle window_;
+ scoped_refptr<gfx::GLShareGroup> share_group_;
};
} // namespace gpu