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

Unified Diff: webkit/gpu/webgraphicscontext3d_in_process_impl.h

Issue 8301019: Allow specification of the share group in WebGraphicsContext3DInProcessImpl (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 2 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: webkit/gpu/webgraphicscontext3d_in_process_impl.h
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_impl.h
index 86cbcc694e551d6cacacffe24bb742dd9b9b4dd2..6bb892648de0e343350528cde2996a644d97e1a3 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
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | webkit/gpu/webgraphicscontext3d_in_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698