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

Unified Diff: cc/resources/raster_tile_priority_queue.cc

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: update 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
« no previous file with comments | « cc/resources/raster_tile_priority_queue.h ('k') | cc/resources/raster_tile_priority_queue_all.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/raster_tile_priority_queue.cc
diff --git a/cc/resources/raster_tile_priority_queue.cc b/cc/resources/raster_tile_priority_queue.cc
index 12fcaa7e87b0394768f6097fde46e64cdd567d32..0dd003a2171f95e4725d3fe3f04d9e1ccd18fc14 100644
--- a/cc/resources/raster_tile_priority_queue.cc
+++ b/cc/resources/raster_tile_priority_queue.cc
@@ -4,6 +4,7 @@
#include "cc/resources/raster_tile_priority_queue.h"
+#include "base/containers/hash_tables.h"
#include "cc/resources/raster_tile_priority_queue_all.h"
#include "cc/resources/raster_tile_priority_queue_required.h"
@@ -11,21 +12,24 @@ namespace cc {
// static
scoped_ptr<RasterTilePriorityQueue> RasterTilePriorityQueue::Create(
- const std::vector<PictureLayerImpl::Pair>& paired_layers,
+ const base::hash_map<int, PictureLayerTilingSet::Pair>&
+ paired_picture_layer_tiling_sets,
+ bool has_pending_tree,
TreePriority tree_priority,
Type type) {
switch (type) {
case Type::ALL: {
scoped_ptr<RasterTilePriorityQueueAll> queue(
new RasterTilePriorityQueueAll);
- queue->Build(paired_layers, tree_priority);
+ queue->Build(paired_picture_layer_tiling_sets, has_pending_tree,
+ tree_priority);
return queue.Pass();
}
case Type::REQUIRED_FOR_ACTIVATION:
case Type::REQUIRED_FOR_DRAW: {
scoped_ptr<RasterTilePriorityQueueRequired> queue(
new RasterTilePriorityQueueRequired);
- queue->Build(paired_layers, type);
+ queue->Build(paired_picture_layer_tiling_sets, has_pending_tree, type);
return queue.Pass();
}
}
« no previous file with comments | « cc/resources/raster_tile_priority_queue.h ('k') | cc/resources/raster_tile_priority_queue_all.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698