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

Unified Diff: cc/resources/eviction_tile_priority_queue.h

Issue 1130123003: cc: Separate the priority from the tile and put in new PrioritizedTile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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 | « cc/layers/picture_layer_impl_unittest.cc ('k') | 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 ecf3401ad001dcefa10ec0f79a6fcea4bae32acb..06118d987d99d86627bc72290c554ffaa5a54d82 100644
--- a/cc/resources/eviction_tile_priority_queue.h
+++ b/cc/resources/eviction_tile_priority_queue.h
@@ -15,6 +15,7 @@
#include "cc/resources/tiling_set_eviction_queue.h"
namespace cc {
+class PrioritizedTile;
class CC_EXPORT EvictionTilePriorityQueue {
public:
@@ -26,11 +27,12 @@ class CC_EXPORT EvictionTilePriorityQueue {
TreePriority tree_priority);
bool IsEmpty() const;
- Tile* Top();
+ const PrioritizedTile& Top() const;
void Pop();
private:
ScopedPtrVector<TilingSetEvictionQueue>& GetNextQueues();
+ const ScopedPtrVector<TilingSetEvictionQueue>& GetNextQueues() const;
ScopedPtrVector<TilingSetEvictionQueue> active_queues_;
ScopedPtrVector<TilingSetEvictionQueue> pending_queues_;
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/eviction_tile_priority_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698