Chromium Code Reviews| 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); |