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

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

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 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/picture_layer_tiling_unittest.cc ('k') | cc/tiles/raster_tile_priority_queue.cc » ('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_TILES_RASTER_TILE_PRIORITY_QUEUE_H_ 5 #ifndef CC_TILES_RASTER_TILE_PRIORITY_QUEUE_H_
6 #define CC_TILES_RASTER_TILE_PRIORITY_QUEUE_H_ 6 #define CC_TILES_RASTER_TILE_PRIORITY_QUEUE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 #include "cc/layers/picture_layer_impl.h" 12 #include "cc/layers/picture_layer_impl.h"
13 #include "cc/tiles/tile_priority.h" 13 #include "cc/tiles/tile_priority.h"
14 14
15 namespace cc { 15 namespace cc {
16 class PrioritizedTile; 16 class PrioritizedTile;
17 17
18 class CC_EXPORT RasterTilePriorityQueue { 18 class CC_EXPORT RasterTilePriorityQueue {
19 public: 19 public:
20 enum class Type { ALL, REQUIRED_FOR_ACTIVATION, REQUIRED_FOR_DRAW }; 20 enum class Type { ALL, REQUIRED_FOR_ACTIVATION, REQUIRED_FOR_DRAW };
21 21
22 static scoped_ptr<RasterTilePriorityQueue> Create( 22 static std::unique_ptr<RasterTilePriorityQueue> Create(
23 const std::vector<PictureLayerImpl*>& active_layers, 23 const std::vector<PictureLayerImpl*>& active_layers,
24 const std::vector<PictureLayerImpl*>& pending_layers, 24 const std::vector<PictureLayerImpl*>& pending_layers,
25 TreePriority tree_priority, 25 TreePriority tree_priority,
26 Type type); 26 Type type);
27 27
28 virtual ~RasterTilePriorityQueue() {} 28 virtual ~RasterTilePriorityQueue() {}
29 29
30 virtual bool IsEmpty() const = 0; 30 virtual bool IsEmpty() const = 0;
31 virtual const PrioritizedTile& Top() const = 0; 31 virtual const PrioritizedTile& Top() const = 0;
32 virtual void Pop() = 0; 32 virtual void Pop() = 0;
33 33
34 protected: 34 protected:
35 RasterTilePriorityQueue() {} 35 RasterTilePriorityQueue() {}
36 36
37 private: 37 private:
38 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue); 38 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue);
39 }; 39 };
40 40
41 } // namespace cc 41 } // namespace cc
42 42
43 #endif // CC_TILES_RASTER_TILE_PRIORITY_QUEUE_H_ 43 #endif // CC_TILES_RASTER_TILE_PRIORITY_QUEUE_H_
OLDNEW
« no previous file with comments | « cc/tiles/picture_layer_tiling_unittest.cc ('k') | cc/tiles/raster_tile_priority_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698