| Index: ui/gfx/gl/gl_context_egl.h
|
| ===================================================================
|
| --- ui/gfx/gl/gl_context_egl.h (revision 85357)
|
| +++ ui/gfx/gl/gl_context_egl.h (working copy)
|
| @@ -8,23 +8,18 @@
|
|
|
| #include <string>
|
|
|
| -#include "base/memory/scoped_ptr.h"
|
| #include "ui/gfx/gl/gl_context.h"
|
| -#include "ui/gfx/size.h"
|
|
|
| typedef void* EGLContext;
|
|
|
| namespace gfx {
|
|
|
| -class GLSurfaceEGL;
|
| +class GLSurface;
|
|
|
| // Encapsulates an EGL OpenGL ES context.
|
| class GLContextEGL : public GLContext {
|
| public:
|
| - // Takes ownership of surface. TODO(apatrick): separate notion of surface
|
| - // from context.
|
| - explicit GLContextEGL(GLSurfaceEGL* surface);
|
| -
|
| + GLContextEGL();
|
| virtual ~GLContextEGL();
|
|
|
| // Initialize an EGL context.
|
| @@ -32,19 +27,14 @@
|
|
|
| // Implement GLContext.
|
| virtual void Destroy();
|
| - virtual bool MakeCurrent();
|
| - virtual void ReleaseCurrent();
|
| - virtual bool IsCurrent();
|
| - virtual bool IsOffscreen();
|
| - virtual bool SwapBuffers();
|
| - virtual gfx::Size GetSize();
|
| - virtual GLSurface* GetSurface();
|
| + 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<GLSurfaceEGL> surface_;
|
| EGLContext context_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(GLContextEGL);
|
|
|