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

Unified Diff: cc/resources/eviction_tile_priority_queue.h

Issue 430053003: cc: Heapify pointers instead of objects in eviction tile priority queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 6 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/eviction_tile_priority_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/eviction_tile_priority_queue.h
diff --git a/cc/resources/eviction_tile_priority_queue.h b/cc/resources/eviction_tile_priority_queue.h
index 3b02c962c027ce3af5ec786275c9ba4059bc5502..d5d6fe12f8b190f422923031d3893c66fdfcffbb 100644
--- a/cc/resources/eviction_tile_priority_queue.h
+++ b/cc/resources/eviction_tile_priority_queue.h
@@ -47,7 +47,10 @@ class CC_EXPORT EvictionTilePriorityQueue {
void Pop();
private:
- std::vector<PairedPictureLayerQueue> paired_queues_;
+ // TODO(vmpstr): This is potentially unnecessary if it becomes the case that
+ // PairedPictureLayerQueue is fast enough to copy. In that case, we can use
+ // objects directly (ie std::vector<PairedPictureLayerQueue>).
+ ScopedPtrVector<PairedPictureLayerQueue> paired_queues_heap_;
reveman 2014/08/06 01:37:42 nit: not sure it's necessary to add the "heap_" su
vmpstr 2014/08/06 15:54:19 Done.
TreePriority tree_priority_;
DISALLOW_COPY_AND_ASSIGN(EvictionTilePriorityQueue);
« no previous file with comments | « no previous file | cc/resources/eviction_tile_priority_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698