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

Side by Side Diff: cc/tiles/raster_tile_priority_queue.cc

Issue 1144693002: cc: Move files out of cc/resources/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resources: android 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 unified diff | Download patch
« no previous file with comments | « cc/tiles/raster_tile_priority_queue.h ('k') | cc/tiles/raster_tile_priority_queue_all.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/tiles/raster_tile_priority_queue.h"
6 6
7 #include "cc/resources/raster_tile_priority_queue_all.h" 7 #include "cc/tiles/raster_tile_priority_queue_all.h"
8 #include "cc/resources/raster_tile_priority_queue_required.h" 8 #include "cc/tiles/raster_tile_priority_queue_required.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 // static 12 // static
13 scoped_ptr<RasterTilePriorityQueue> RasterTilePriorityQueue::Create( 13 scoped_ptr<RasterTilePriorityQueue> RasterTilePriorityQueue::Create(
14 const std::vector<PictureLayerImpl*>& active_layers, 14 const std::vector<PictureLayerImpl*>& active_layers,
15 const std::vector<PictureLayerImpl*>& pending_layers, 15 const std::vector<PictureLayerImpl*>& pending_layers,
16 TreePriority tree_priority, 16 TreePriority tree_priority,
17 Type type) { 17 Type type) {
18 switch (type) { 18 switch (type) {
19 case Type::ALL: { 19 case Type::ALL: {
20 scoped_ptr<RasterTilePriorityQueueAll> queue( 20 scoped_ptr<RasterTilePriorityQueueAll> queue(
21 new RasterTilePriorityQueueAll); 21 new RasterTilePriorityQueueAll);
22 queue->Build(active_layers, pending_layers, tree_priority); 22 queue->Build(active_layers, pending_layers, tree_priority);
23 return queue.Pass(); 23 return queue.Pass();
24 } 24 }
25 case Type::REQUIRED_FOR_ACTIVATION: 25 case Type::REQUIRED_FOR_ACTIVATION:
26 case Type::REQUIRED_FOR_DRAW: { 26 case Type::REQUIRED_FOR_DRAW: {
27 scoped_ptr<RasterTilePriorityQueueRequired> queue( 27 scoped_ptr<RasterTilePriorityQueueRequired> queue(
28 new RasterTilePriorityQueueRequired); 28 new RasterTilePriorityQueueRequired);
29 queue->Build(active_layers, pending_layers, type); 29 queue->Build(active_layers, pending_layers, type);
30 return queue.Pass(); 30 return queue.Pass();
31 } 31 }
32 } 32 }
33 NOTREACHED(); 33 NOTREACHED();
34 return nullptr; 34 return nullptr;
35 } 35 }
36 36
37 } // namespace cc 37 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiles/raster_tile_priority_queue.h ('k') | cc/tiles/raster_tile_priority_queue_all.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698