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

Unified Diff: ui/gl/gl_context.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: Fix GLX build 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
Index: ui/gl/gl_context.h
diff --git a/ui/gl/gl_context.h b/ui/gl/gl_context.h
index defeb25dc34f07e63ec4d40eb4005db2d2166420..68de700089b122470b0b604a3070525679c544c4 100644
--- a/ui/gl/gl_context.h
+++ b/ui/gl/gl_context.h
@@ -50,6 +50,11 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
// Returns space separated list of extensions. The context must be current.
virtual std::string GetExtensions();
+ // Returns in bytes the total amount of GPU memory for the GPU which this
+ // context is currently rendering on. Returns false if no extension exists
+ // to get the exact amount of GPU memory.
+ virtual bool GetTotalGpuMemory(size_t& bytes);
Ken Russell (switch to Gerrit) 2012/09/20 06:47:23 Google C++ style guide disallows mutable reference
ccameron 2012/09/20 21:22:42 Fixed.
+
// Returns whether the current context supports the named extension. The
// context must be current.
bool HasExtension(const char* name);

Powered by Google App Engine
This is Rietveld 408576698