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

Unified Diff: cc/scoped_resource.cc

Issue 11578019: Remove the pools from the ResourceProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-resolve against HEAD Created 8 years 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/scoped_resource.h ('k') | cc/scoped_resource_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scoped_resource.cc
diff --git a/cc/scoped_resource.cc b/cc/scoped_resource.cc
index 5295b55614ac7d7a705dc833683a86e9b7aafe33..c5894aaac2fff829c071b0b85606ae8107425c2f 100644
--- a/cc/scoped_resource.cc
+++ b/cc/scoped_resource.cc
@@ -15,13 +15,13 @@ ScopedResource::~ScopedResource() {
Free();
}
-bool ScopedResource::Allocate(int pool, const gfx::Size& size, GLenum format,
+bool ScopedResource::Allocate(const gfx::Size& size, GLenum format,
ResourceProvider::TextureUsageHint hint) {
DCHECK(!id());
DCHECK(!size.IsEmpty());
set_dimensions(size, format);
- set_id(resource_provider_->createResource(pool, size, format, hint));
+ set_id(resource_provider_->createResource(size, format, hint));
#ifndef NDEBUG
allocate_thread_id_ = base::PlatformThread::CurrentId();
« no previous file with comments | « cc/scoped_resource.h ('k') | cc/scoped_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698