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

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

Issue 431433005: cc: Use pointers for heaps in tile manager raster tile priority queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 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 <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 30 matching lines...) Expand all
41 void Build(const std::vector<PictureLayerImpl::Pair>& paired_layers, 41 void Build(const std::vector<PictureLayerImpl::Pair>& paired_layers,
42 TreePriority tree_priority); 42 TreePriority tree_priority);
43 void Reset(); 43 void Reset();
44 44
45 bool IsEmpty() const; 45 bool IsEmpty() const;
46 Tile* Top(); 46 Tile* Top();
47 void Pop(); 47 void Pop();
48 48
49 private: 49 private:
50 std::vector<PairedPictureLayerQueue> paired_queues_; 50 std::vector<PairedPictureLayerQueue> paired_queues_;
51 std::vector<PairedPictureLayerQueue*> paired_queues_heap_;
reveman 2014/08/04 14:37:16 Please use ScopedPtrVector unless that is signific
vmpstr 2014/08/04 16:46:26 Done.
51 TreePriority tree_priority_; 52 TreePriority tree_priority_;
52 53
53 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue); 54 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue);
54 }; 55 };
55 56
56 } // namespace cc 57 } // namespace cc
57 58
58 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ 59 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/resources/raster_tile_priority_queue.cc » ('j') | cc/resources/raster_tile_priority_queue.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698