| Index: ui/gl/gl_context_cgl.h
|
| diff --git a/ui/gl/gl_context_cgl.h b/ui/gl/gl_context_cgl.h
|
| index 1e41b520eea3d93124fbe633dafb95fbdce3582e..49bc346bfc1d20835a9fcd8ca8dea6a641a3a9a9 100644
|
| --- a/ui/gl/gl_context_cgl.h
|
| +++ b/ui/gl/gl_context_cgl.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include <OpenGL/CGLTypes.h>
|
|
|
| +#include "base/memory/scoped_generic_obj.h"
|
| #include "ui/gl/gl_context.h"
|
|
|
| namespace gfx {
|
| @@ -27,6 +28,7 @@ class GLContextCGL : public GLContext {
|
| virtual bool IsCurrent(GLSurface* surface) OVERRIDE;
|
| virtual void* GetHandle() OVERRIDE;
|
| virtual void SetSwapInterval(int interval) OVERRIDE;
|
| + virtual bool GetTotalGpuMemory(size_t* bytes) OVERRIDE;
|
|
|
| protected:
|
| virtual ~GLContextCGL();
|
| @@ -49,6 +51,14 @@ class GLContextCGL : public GLContext {
|
| DISALLOW_COPY_AND_ASSIGN(GLContextCGL);
|
| };
|
|
|
| +class ScopedCGLDestroyRendererInfo {
|
| + public:
|
| + void operator()(CGLRendererInfoObj x) const;
|
| +};
|
| +
|
| +typedef ScopedGenericObj<CGLRendererInfoObj, ScopedCGLDestroyRendererInfo>
|
| + ScopedCGLRendererInfoObj;
|
| +
|
| } // namespace gfx
|
|
|
| #endif // UI_GL_GL_CONTEXT_CGL_H_
|
|
|