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

Unified Diff: cc/resources/raster_tile_priority_queue_all.h

Issue 900073003: cc: Rework how picture layer tiling set gets into raster queues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed unrelated changes Created 5 years, 10 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
Index: cc/resources/raster_tile_priority_queue_all.h
diff --git a/cc/resources/raster_tile_priority_queue_all.h b/cc/resources/raster_tile_priority_queue_all.h
index c2b8910c00611daa04831f9fe54e12d150b7b341..bdd27e351a96f85566a60bab830af570f928be38 100644
--- a/cc/resources/raster_tile_priority_queue_all.h
+++ b/cc/resources/raster_tile_priority_queue_all.h
@@ -9,6 +9,7 @@
#include <utility>
#include <vector>
+#include "base/containers/hash_tables.h"
#include "cc/base/cc_export.h"
#include "cc/layers/picture_layer_impl.h"
#include "cc/resources/raster_tile_priority_queue.h"
@@ -22,7 +23,8 @@ class CC_EXPORT RasterTilePriorityQueueAll : public RasterTilePriorityQueue {
class PairedTilingSetQueue {
public:
PairedTilingSetQueue();
- PairedTilingSetQueue(const PictureLayerImpl::Pair& layer_pair,
+ PairedTilingSetQueue(PictureLayerTilingSet* active,
+ PictureLayerTilingSet* pending,
TreePriority tree_priority);
~PairedTilingSetQueue();
@@ -45,7 +47,7 @@ class CC_EXPORT RasterTilePriorityQueueAll : public RasterTilePriorityQueue {
private:
scoped_ptr<TilingSetRasterQueueAll> active_queue_;
scoped_ptr<TilingSetRasterQueueAll> pending_queue_;
- bool has_both_layers_;
+ bool has_both_tiling_sets_;
// Set of returned tiles (excluding the current one) for DCHECKing.
std::set<const Tile*> returned_tiles_for_debug_;
@@ -61,7 +63,9 @@ class CC_EXPORT RasterTilePriorityQueueAll : public RasterTilePriorityQueue {
private:
friend class RasterTilePriorityQueue;
- void Build(const std::vector<PictureLayerImpl::Pair>& paired_layers,
+ void Build(const base::hash_map<int, PictureLayerTilingSet::Pair>&
+ paired_picture_layer_tiling_sets,
+ bool has_pending_tree,
TreePriority tree_priority);
// TODO(vmpstr): This is potentially unnecessary if it becomes the case that

Powered by Google App Engine
This is Rietveld 408576698