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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/resources/raster_tile_priority_queue.h" 5 #include "cc/resources/raster_tile_priority_queue.h"
6 6
7 #include "base/containers/hash_tables.h"
7 #include "cc/resources/raster_tile_priority_queue_all.h" 8 #include "cc/resources/raster_tile_priority_queue_all.h"
8 #include "cc/resources/raster_tile_priority_queue_required.h" 9 #include "cc/resources/raster_tile_priority_queue_required.h"
9 10
10 namespace cc { 11 namespace cc {
11 12
12 // static 13 // static
13 scoped_ptr<RasterTilePriorityQueue> RasterTilePriorityQueue::Create( 14 scoped_ptr<RasterTilePriorityQueue> RasterTilePriorityQueue::Create(
14 const std::vector<PictureLayerImpl::Pair>& paired_layers, 15 const base::hash_map<int, PictureLayerTilingSet::Pair>&
16 paired_picture_layer_tiling_sets,
17 bool has_pending_tree,
15 TreePriority tree_priority, 18 TreePriority tree_priority,
16 Type type) { 19 Type type) {
17 switch (type) { 20 switch (type) {
18 case Type::ALL: { 21 case Type::ALL: {
19 scoped_ptr<RasterTilePriorityQueueAll> queue( 22 scoped_ptr<RasterTilePriorityQueueAll> queue(
20 new RasterTilePriorityQueueAll); 23 new RasterTilePriorityQueueAll);
21 queue->Build(paired_layers, tree_priority); 24 queue->Build(paired_picture_layer_tiling_sets, has_pending_tree,
25 tree_priority);
22 return queue.Pass(); 26 return queue.Pass();
23 } 27 }
24 case Type::REQUIRED_FOR_ACTIVATION: 28 case Type::REQUIRED_FOR_ACTIVATION:
25 case Type::REQUIRED_FOR_DRAW: { 29 case Type::REQUIRED_FOR_DRAW: {
26 scoped_ptr<RasterTilePriorityQueueRequired> queue( 30 scoped_ptr<RasterTilePriorityQueueRequired> queue(
27 new RasterTilePriorityQueueRequired); 31 new RasterTilePriorityQueueRequired);
28 queue->Build(paired_layers, type); 32 queue->Build(paired_picture_layer_tiling_sets, has_pending_tree, type);
29 return queue.Pass(); 33 return queue.Pass();
30 } 34 }
31 } 35 }
32 NOTREACHED(); 36 NOTREACHED();
33 return nullptr; 37 return nullptr;
34 } 38 }
35 39
36 } // namespace cc 40 } // namespace cc
OLDNEW
« 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