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

Side by Side Diff: cc/resources/raster_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 unified diff | Download patch
« no previous file with comments | « cc/resources/prioritized_tile.cc ('k') | cc/resources/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ 5 #ifndef CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_
6 #define CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ 6 #define CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/layers/picture_layer_impl.h" 11 #include "cc/layers/picture_layer_impl.h"
12 #include "cc/resources/tile_priority.h" 12 #include "cc/resources/tile_priority.h"
13 13
14 namespace cc { 14 namespace cc {
15 class Tile; 15 class PrioritizedTile;
16 16
17 class CC_EXPORT RasterTilePriorityQueue { 17 class CC_EXPORT RasterTilePriorityQueue {
18 public: 18 public:
19 enum class Type { ALL, REQUIRED_FOR_ACTIVATION, REQUIRED_FOR_DRAW }; 19 enum class Type { ALL, REQUIRED_FOR_ACTIVATION, REQUIRED_FOR_DRAW };
20 20
21 static scoped_ptr<RasterTilePriorityQueue> Create( 21 static scoped_ptr<RasterTilePriorityQueue> Create(
22 const std::vector<PictureLayerImpl*>& active_layers, 22 const std::vector<PictureLayerImpl*>& active_layers,
23 const std::vector<PictureLayerImpl*>& pending_layers, 23 const std::vector<PictureLayerImpl*>& pending_layers,
24 TreePriority tree_priority, 24 TreePriority tree_priority,
25 Type type); 25 Type type);
26 26
27 virtual ~RasterTilePriorityQueue() {} 27 virtual ~RasterTilePriorityQueue() {}
28 28
29 virtual bool IsEmpty() const = 0; 29 virtual bool IsEmpty() const = 0;
30 virtual Tile* Top() = 0; 30 virtual const PrioritizedTile& Top() const = 0;
31 virtual void Pop() = 0; 31 virtual void Pop() = 0;
32 32
33 protected: 33 protected:
34 RasterTilePriorityQueue() {} 34 RasterTilePriorityQueue() {}
35 35
36 private: 36 private:
37 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue); 37 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue);
38 }; 38 };
39 39
40 } // namespace cc 40 } // namespace cc
41 41
42 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ 42 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_
OLDNEW
« no previous file with comments | « cc/resources/prioritized_tile.cc ('k') | cc/resources/raster_tile_priority_queue_all.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698