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

Unified Diff: cc/resources/resource_pool.h

Issue 1151573004: Use a deque in ResourcePool instead of a list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: deque: rebase Created 5 years, 7 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 | no next file » | 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 7f0d07197916762a08381a4615c780b7d6f891ce..53f4135e4d084482e8606d8333c75c97c88a9590 100644
--- a/cc/resources/resource_pool.h
+++ b/cc/resources/resource_pool.h
@@ -5,7 +5,7 @@
#ifndef CC_RESOURCES_RESOURCE_POOL_H_
#define CC_RESOURCES_RESOURCE_POOL_H_
-#include <list>
+#include <deque>
#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_export.h"
@@ -74,7 +74,7 @@ class CC_EXPORT ResourcePool {
ScopedResource* resource;
uint64_t content_id;
};
- typedef std::list<PoolResource> ResourceList;
+ typedef std::deque<PoolResource> ResourceList;
ResourceList unused_resources_;
ResourceList busy_resources_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698