Chromium Code Reviews| Index: ui/gfx/gl/gl_surface.h |
| diff --git a/ui/gfx/gl/gl_surface.h b/ui/gfx/gl/gl_surface.h |
| index a42afab564aae5ab64fb4c6f78f427beaa108763..ad76369549aaa2c618135ae21236ce7f1069c845 100644 |
| --- a/ui/gfx/gl/gl_surface.h |
| +++ b/ui/gfx/gl/gl_surface.h |
| @@ -71,9 +71,16 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> { |
| // on error. |
| virtual bool OnMakeCurrent(GLContext* context); |
| + // Graphics Resource Usage |
| + enum ResourceUsage { |
| + RESOURCE_USAGE_FULL, |
| + RESOURCE_USAGE_LESS, |
| + RESOURCE_USAGE_NONE, |
| + }; |
| + |
| // This gives a hint as to whether this surface is visible. If it is not |
| // visible, the backing store need not be preserved. |
| - virtual void SetVisible(bool visible); |
| + virtual void SetResourceUsage(ResourceUsage resourceUsage); |
|
jonathan.backer
2012/01/19 16:11:19
A lot has changed since SetVisible was introduced.
|
| // Get a handle used to share the surface with another process. Returns null |
| // if this is not possible. |
| @@ -130,7 +137,7 @@ class GL_EXPORT GLSurfaceAdapter : public GLSurface { |
| virtual void* GetHandle() OVERRIDE; |
| virtual unsigned int GetBackingFrameBufferObject() OVERRIDE; |
| virtual bool OnMakeCurrent(GLContext* context) OVERRIDE; |
| - virtual void SetVisible(bool visible) OVERRIDE; |
| + virtual void SetResourceUsage(ResourceUsage resourceUsage) OVERRIDE; |
| virtual void* GetShareHandle() OVERRIDE; |
| virtual void* GetDisplay() OVERRIDE; |
| virtual void* GetConfig() OVERRIDE; |