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

Unified Diff: ui/gl/gl_context_cgl.h

Issue 10957009: Get real GPU memory values on NV+Linux and OS X (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 years, 3 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 | « ui/gl/gl_context.cc ('k') | ui/gl/gl_context_cgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ui/gl/gl_context.cc ('k') | ui/gl/gl_context_cgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698