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

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: 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..7a0c8fe3aa4197114a6d64d48e72a4afa332345e 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);
@@ -446,6 +439,13 @@ class CC_EXPORT ResourceProvider
const std::vector<unsigned>& use_image_texture_targets);
void Initialize();
+ ResourceId CreateGLTexture(const gfx::Size& size,
danakj 2015/10/28 20:07:08 You said private but these are protected, how come
ccameron 2015/10/28 20:12:43 Oop. Fxied.
+ GLenum target,
+ TextureHint hint,
+ ResourceFormat format);
+
+ ResourceId CreateBitmap(const gfx::Size& size);
+
private:
struct Resource {
enum Origin { INTERNAL, EXTERNAL, DELEGATED };
« 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