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

Unified Diff: cc/resource_provider.h

Issue 11548052: Identify evictable textures by GL texture parameter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve against head again Created 8 years 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 | « cc/prioritized_resource_manager.cc ('k') | cc/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resource_provider.h
diff --git a/cc/resource_provider.h b/cc/resource_provider.h
index 6d951dfab17c85d750c7238f8e3990da59eb935b..d90d2244340edfdc731913b8505f1dde6c5e4005 100644
--- a/cc/resource_provider.h
+++ b/cc/resource_provider.h
@@ -72,8 +72,12 @@ public:
// Creates a resource of the default resource type.
ResourceId createResource(const gfx::Size&, GLenum format, TextureUsageHint);
+ // Creates a resource which is tagged as being managed for GPU memory accounting purposes.
+ ResourceId createManagedResource(const gfx::Size&, GLenum format, TextureUsageHint);
+
// You can also explicitly create a specific resource type.
- ResourceId createGLTexture(const gfx::Size&, GLenum format, TextureUsageHint);
+ ResourceId createGLTexture(const gfx::Size&, GLenum format, GLenum texturePool, TextureUsageHint);
+
ResourceId createBitmap(const gfx::Size&);
// Wraps an external texture into a GL resource.
ResourceId createResourceFromExternalTexture(unsigned textureId);
« no previous file with comments | « cc/prioritized_resource_manager.cc ('k') | cc/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698