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

Side by Side Diff: cc/tiles/eviction_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/test/threaded_channel_for_test.cc ('k') | cc/tiles/eviction_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_EVICTION_TILE_PRIORITY_QUEUE_H_ 5 #ifndef CC_TILES_EVICTION_TILE_PRIORITY_QUEUE_H_
6 #define CC_TILES_EVICTION_TILE_PRIORITY_QUEUE_H_ 6 #define CC_TILES_EVICTION_TILE_PRIORITY_QUEUE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 14 matching lines...) Expand all
25 25
26 void Build(const std::vector<PictureLayerImpl*>& active_layers, 26 void Build(const std::vector<PictureLayerImpl*>& active_layers,
27 const std::vector<PictureLayerImpl*>& pending_layers, 27 const std::vector<PictureLayerImpl*>& pending_layers,
28 TreePriority tree_priority); 28 TreePriority tree_priority);
29 29
30 bool IsEmpty() const; 30 bool IsEmpty() const;
31 const PrioritizedTile& Top() const; 31 const PrioritizedTile& Top() const;
32 void Pop(); 32 void Pop();
33 33
34 private: 34 private:
35 std::vector<scoped_ptr<TilingSetEvictionQueue>>& GetNextQueues(); 35 std::vector<std::unique_ptr<TilingSetEvictionQueue>>& GetNextQueues();
36 const std::vector<scoped_ptr<TilingSetEvictionQueue>>& GetNextQueues() const; 36 const std::vector<std::unique_ptr<TilingSetEvictionQueue>>& GetNextQueues()
37 const;
37 38
38 std::vector<scoped_ptr<TilingSetEvictionQueue>> active_queues_; 39 std::vector<std::unique_ptr<TilingSetEvictionQueue>> active_queues_;
39 std::vector<scoped_ptr<TilingSetEvictionQueue>> pending_queues_; 40 std::vector<std::unique_ptr<TilingSetEvictionQueue>> pending_queues_;
40 TreePriority tree_priority_; 41 TreePriority tree_priority_;
41 42
42 DISALLOW_COPY_AND_ASSIGN(EvictionTilePriorityQueue); 43 DISALLOW_COPY_AND_ASSIGN(EvictionTilePriorityQueue);
43 }; 44 };
44 45
45 } // namespace cc 46 } // namespace cc
46 47
47 #endif // CC_TILES_EVICTION_TILE_PRIORITY_QUEUE_H_ 48 #endif // CC_TILES_EVICTION_TILE_PRIORITY_QUEUE_H_
OLDNEW
« no previous file with comments | « cc/test/threaded_channel_for_test.cc ('k') | cc/tiles/eviction_tile_priority_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698