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

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: rebase Created 5 years, 4 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') | no next file with comments »
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 efd1e015c9406dd7e9798ba13dcc3bf7eea4f19f..f336e3b020e3c105f365f1eacf11fefe3faf323d 100644
--- a/cc/resources/resource_pool.h
+++ b/cc/resources/resource_pool.h
@@ -19,6 +19,10 @@ class ScopedResource;
class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider {
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));
@@ -57,6 +61,7 @@ class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider {
base::trace_event::ProcessMemoryDump* pmd) override;
protected:
+ explicit ResourcePool(ResourceProvider* resource_provider);
ResourcePool(ResourceProvider* resource_provider, GLenum target);
bool ResourceUsageTooHigh();
« no previous file with comments | « no previous file | cc/resources/resource_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698