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

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: 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 | « third_party/mesa/README.chromium ('k') | ui/gl/gl_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context.h
diff --git a/ui/gl/gl_context.h b/ui/gl/gl_context.h
index defeb25dc34f07e63ec4d40eb4005db2d2166420..7c0b669c0b3dcf1f80dd8269dfc9ad9d82e5484f 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);
+
// Returns whether the current context supports the named extension. The
// context must be current.
bool HasExtension(const char* name);
« no previous file with comments | « third_party/mesa/README.chromium ('k') | ui/gl/gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698