Index: ui/gfx/gl/gl_context_cgl.h |
=================================================================== |
--- ui/gfx/gl/gl_context_cgl.h (revision 85357) |
+++ ui/gfx/gl/gl_context_cgl.h (working copy) |
@@ -2,20 +2,16 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include <string> |
- |
-#include "base/memory/scoped_ptr.h" |
#include "ui/gfx/gl/gl_context.h" |
-#include "ui/gfx/size.h" |
namespace gfx { |
-class GLSurfaceCGL; |
+class GLSurface; |
// Encapsulates a CGL OpenGL context. |
class GLContextCGL : public GLContext { |
public: |
- explicit GLContextCGL(GLSurfaceCGL* surface); |
+ GLContextCGL(); |
virtual ~GLContextCGL(); |
// Initializes the GL context. |
@@ -23,16 +19,13 @@ |
// 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); |
private: |
- scoped_ptr<GLSurfaceCGL> surface_; |
void* context_; |
DISALLOW_COPY_AND_ASSIGN(GLContextCGL); |