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

Unified Diff: cc/resources/resource_pool.h

Issue 1420433009: cc: Keep most recently used resources at the front of resource queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 5 years, 1 month 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_pool.cc » ('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 c1db254e052e78627fdcb791aa01f528a69b1177..3358c152230b056c6bc84b46ea973a825588e1de 100644
--- a/cc/resources/resource_pool.h
+++ b/cc/resources/resource_pool.h
@@ -119,6 +119,7 @@ class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider {
size_t total_resource_count_;
using ResourceDeque = ScopedPtrDeque<PoolResource>;
+ // Holds least recently used resources at the front of the queue.
reveman 2015/11/02 06:07:51 why don't we just revert this order and keep the l
prashant.n 2015/11/02 17:56:45 Should we do this or leave as it is? Do let me kno
reveman 2015/11/02 18:16:29 Unless I missing something, reverting the order is
ResourceDeque unused_resources_;
ResourceDeque busy_resources_;
« no previous file with comments | « no previous file | cc/resources/resource_pool.cc » ('j') | cc/resources/resource_pool.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698