| Index: ui/gfx/gl/gl_context_glx.h
|
| ===================================================================
|
| --- ui/gfx/gl/gl_context_glx.h (revision 85357)
|
| +++ ui/gfx/gl/gl_context_glx.h (working copy)
|
| @@ -4,22 +4,16 @@
|
|
|
| #include <string>
|
|
|
| -#include "base/memory/scoped_ptr.h"
|
| -#include "ui/base/x/x11_util.h"
|
| #include "ui/gfx/gl/gl_context.h"
|
| -#include "ui/gfx/size.h"
|
|
|
| namespace gfx {
|
|
|
| -class GLSurfaceGLX;
|
| +class GLSurface;
|
|
|
| // Encapsulates a GLX OpenGL context.
|
| class GLContextGLX : public GLContext {
|
| public:
|
| - // Takes ownership of surface. TODO(apatrick): separate notion of surface
|
| - // from context.
|
| - explicit GLContextGLX(GLSurfaceGLX* surface);
|
| -
|
| + GLContextGLX();
|
| virtual ~GLContextGLX();
|
|
|
| // Initializes the GL context.
|
| @@ -27,17 +21,14 @@
|
|
|
| // Implement GLContext.
|
| virtual void Destroy();
|
| - virtual bool MakeCurrent();
|
| - virtual bool IsCurrent();
|
| - virtual bool IsOffscreen();
|
| - virtual bool SwapBuffers();
|
| - virtual gfx::Size GetSize();
|
| + virtual bool MakeCurrent(GLSurface* surface);
|
| + virtual void ReleaseCurrent(GLSurface* surface);
|
| + virtual bool IsCurrent(GLSurface* surface);
|
| virtual void* GetHandle();
|
| virtual void SetSwapInterval(int interval);
|
| virtual std::string GetExtensions();
|
|
|
| private:
|
| - scoped_ptr<GLSurfaceGLX> surface_;
|
| void* context_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(GLContextGLX);
|
|
|