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

Unified Diff: ui/gfx/gl/gl_context.h

Issue 6880218: Removed "compositor" child window that was created by the GPU process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
« no previous file with comments | « gpu/command_buffer/service/gpu_scheduler.cc ('k') | ui/gfx/gl/gl_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gl/gl_context.h
===================================================================
--- ui/gfx/gl/gl_context.h (revision 83213)
+++ ui/gfx/gl/gl_context.h (working copy)
@@ -14,6 +14,8 @@
namespace gfx {
+class GLSurface;
+
// Encapsulates an OpenGL context, hiding platform specific management.
class GLContext {
public:
@@ -26,6 +28,10 @@
// Makes the GL context current on the current thread.
virtual bool MakeCurrent() = 0;
+ // Releases this GL context as current on the current thread. TODO(apatrick):
+ // implement this in the other GLContexts.
+ virtual void ReleaseCurrent();
+
// Returns true if this context is current.
virtual bool IsCurrent() = 0;
@@ -39,6 +45,10 @@
// Get the size of the back buffer.
virtual gfx::Size GetSize() = 0;
+ // Get the surface. TODO(apatrick): remove this when contexts are split from
+ // surfaces.
+ virtual GLSurface* GetSurface();
+
// Get the underlying platform specific GL context "handle".
virtual void* GetHandle() = 0;
« no previous file with comments | « gpu/command_buffer/service/gpu_scheduler.cc ('k') | ui/gfx/gl/gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698