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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 7021014: GLContext no longer holds a pointer to a GLSurface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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: gpu/command_buffer/service/gles2_cmd_decoder.h
===================================================================
--- gpu/command_buffer/service/gles2_cmd_decoder.h (revision 86168)
+++ gpu/command_buffer/service/gles2_cmd_decoder.h (working copy)
@@ -17,6 +17,7 @@
namespace gfx {
class GLContext;
+class GLSurface;
}
namespace gpu {
@@ -55,6 +56,7 @@
// decoder with a frame buffer that can be referenced from the parent.
// Takes ownership of GLContext.
// Parameters:
+ // surface: the GL surface to render to.
// context: the GL context to render to.
// size: the size if the GL context is offscreen.
// allowed_extensions: A string in the same format as
@@ -66,7 +68,8 @@
// parent's namespace.
// Returns:
// true if successful.
- virtual bool Initialize(gfx::GLContext* context,
+ virtual bool Initialize(gfx::GLSurface* surface,
+ gfx::GLContext* context,
const gfx::Size& size,
const DisallowedExtensions& disallowed_extensions,
const char* allowed_extensions,
@@ -91,6 +94,9 @@
// Gets the GLES2 Util which holds info.
virtual GLES2Util* GetGLES2Util() = 0;
+ // Gets the associated GLSurface.
+ virtual gfx::GLSurface* GetGLSurface() = 0;
+
// Gets the associated GLContext.
virtual gfx::GLContext* GetGLContext() = 0;

Powered by Google App Engine
This is Rietveld 408576698