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

Unified Diff: cc/resources/resource_pool.h

Issue 1251693003: cc: Fix the format of GpuMemoryBuffer for SurfaceTexture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move the targets to ResourceProvider and fix the nits Created 5 years, 5 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 | « no previous file | cc/resources/resource_pool.cc » ('j') | cc/resources/resource_provider.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_pool.h
diff --git a/cc/resources/resource_pool.h b/cc/resources/resource_pool.h
index 53f4135e4d084482e8606d8333c75c97c88a9590..e04c8041b57fbcf9778b75c1b371e995aeb07761 100644
--- a/cc/resources/resource_pool.h
+++ b/cc/resources/resource_pool.h
@@ -18,6 +18,10 @@ class ScopedResource;
class CC_EXPORT ResourcePool {
public:
+ static scoped_ptr<ResourcePool> Create(ResourceProvider* resource_provider) {
+ return make_scoped_ptr(new ResourcePool(resource_provider));
+ }
+
static scoped_ptr<ResourcePool> Create(ResourceProvider* resource_provider,
GLenum target) {
return make_scoped_ptr(new ResourcePool(resource_provider, target));
@@ -52,6 +56,7 @@ class CC_EXPORT ResourcePool {
size_t busy_resource_count() const { return busy_resources_.size(); }
protected:
+ ResourcePool(ResourceProvider* resource_provider);
reveman 2015/07/28 08:58:25 nit: explicit ResourcePool(ResourceProv...
ResourcePool(ResourceProvider* resource_provider, GLenum target);
reveman 2015/07/28 08:58:25 Can we remove this ctor with "target" and and alwa
jchen10 2015/07/29 04:33:47 I'm afraid we can't. The image texture is only use
reveman 2015/07/30 02:41:43 Ok. No need to do anything in this patch but I thi
bool ResourceUsageTooHigh();
« no previous file with comments | « no previous file | cc/resources/resource_pool.cc » ('j') | cc/resources/resource_provider.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698