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

Unified Diff: cc/resources/resource_pool.h

Issue 1422103003: cc: Remove the ability to specify a GL texture target (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
Index: cc/resources/resource_pool.h
diff --git a/cc/resources/resource_pool.h b/cc/resources/resource_pool.h
index c1db254e052e78627fdcb791aa01f528a69b1177..b926c41362f3117c44224f3316415ad37152e444 100644
--- a/cc/resources/resource_pool.h
+++ b/cc/resources/resource_pool.h
@@ -21,20 +21,18 @@ namespace cc {
class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider {
public:
- static scoped_ptr<ResourcePool> Create(
+ static scoped_ptr<ResourcePool> CreateForImageTextureTarget(
reveman 2015/10/29 14:11:39 I think this change will break the ongoing work to
ccameron 2015/10/29 19:08:29 Is there a reason that the texture target selectio
reveman 2015/10/29 19:41:57 There are some plans to allocate resources on work
ResourceProvider* resource_provider,
base::SingleThreadTaskRunner* task_runner) {
return make_scoped_ptr(
- new ResourcePool(resource_provider, task_runner, 0 /* target */));
+ new ResourcePool(resource_provider, task_runner, true));
}
static scoped_ptr<ResourcePool> Create(
ResourceProvider* resource_provider,
- base::SingleThreadTaskRunner* task_runner,
- GLenum target) {
- DCHECK_NE(0u, target);
+ base::SingleThreadTaskRunner* task_runner) {
return make_scoped_ptr(
- new ResourcePool(resource_provider, task_runner, target));
+ new ResourcePool(resource_provider, task_runner, false));
}
~ResourcePool() override;
@@ -72,7 +70,7 @@ class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider {
protected:
ResourcePool(ResourceProvider* resource_provider,
base::SingleThreadTaskRunner* task_runner,
- GLenum target);
+ bool use_image_texture_target);
bool ResourceUsageTooHigh();
@@ -111,7 +109,7 @@ class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider {
base::TimeTicks GetUsageTimeForLRUResource() const;
ResourceProvider* resource_provider_;
- const GLenum target_;
+ bool use_image_texture_target_;
size_t max_memory_usage_bytes_;
size_t max_resource_count_;
size_t in_use_memory_usage_bytes_;
« no previous file with comments | « no previous file | cc/resources/resource_pool.cc » ('j') | content/browser/gpu/browser_gpu_memory_buffer_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698