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

Unified Diff: cc/resources/resource_provider.h

Issue 1415583004: cc: Remove references to managed resources (and cleanup) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: protected -> private Created 5 years, 2 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 | « cc/resources/resource_pool.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index df66372620cb6cb23deb653d73219caa08ae4738..50003c425ab5dd49e509e0b1d888dfe1ea860640 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -124,18 +124,11 @@ class CC_EXPORT ResourceProvider
// Creates a resource for a particular texture target (the distinction between
// texture targets has no effect in software mode).
- ResourceId CreateManagedResource(const gfx::Size& size,
- GLenum target,
- TextureHint hint,
- ResourceFormat format);
+ ResourceId CreateResourceWithTextureTarget(const gfx::Size& size,
+ GLenum target,
+ TextureHint hint,
+ ResourceFormat format);
- // You can also explicitly create a specific resource type.
- ResourceId CreateGLTexture(const gfx::Size& size,
- GLenum target,
- TextureHint hint,
- ResourceFormat format);
-
- ResourceId CreateBitmap(const gfx::Size& size);
// Wraps an IOSurface into a GL resource.
ResourceId CreateResourceFromIOSurface(const gfx::Size& size,
unsigned io_surface_id);
@@ -525,6 +518,11 @@ class CC_EXPORT ResourceProvider
resource->read_lock_fence->HasPassed();
}
+ ResourceId CreateGLTexture(const gfx::Size& size,
+ GLenum target,
+ TextureHint hint,
+ ResourceFormat format);
+ ResourceId CreateBitmap(const gfx::Size& size);
Resource* InsertResource(ResourceId id, const Resource& resource);
Resource* GetResource(ResourceId id);
const Resource* LockForRead(ResourceId id);
« no previous file with comments | « cc/resources/resource_pool.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698