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

Unified Diff: ui/gfx/gl/gl_surface.h

Issue 9192014: Replace WGC3D visibility extension with resource_usage extension. [Part 2 of 3] (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added image_transport_surface_win changes Created 8 years, 11 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/gfx/compositor/test_web_graphics_context_3d.h ('k') | ui/gfx/gl/gl_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
// 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;
« no previous file with comments | « ui/gfx/compositor/test_web_graphics_context_3d.h ('k') | ui/gfx/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698