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

Unified Diff: cc/resources/raster_tile_priority_queue.h

Issue 431433005: cc: Use pointers for heaps in tile manager raster tile priority queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ScopedPtrVector 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 | « cc/base/scoped_ptr_vector.h ('k') | cc/resources/raster_tile_priority_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/raster_tile_priority_queue.h
diff --git a/cc/resources/raster_tile_priority_queue.h b/cc/resources/raster_tile_priority_queue.h
index 7c028d1d81fa545f5badf4855230b9b7db91e4f9..0e2bcf65b0276aa90b2e2754625623c1b3d4254c 100644
--- a/cc/resources/raster_tile_priority_queue.h
+++ b/cc/resources/raster_tile_priority_queue.h
@@ -47,7 +47,10 @@ class CC_EXPORT RasterTilePriorityQueue {
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_;
TreePriority tree_priority_;
DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue);
« no previous file with comments | « cc/base/scoped_ptr_vector.h ('k') | cc/resources/raster_tile_priority_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698