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

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

Issue 430053003: cc: Heapify pointers instead of objects in eviction tile priority queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/_heap// 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // TODO(vmpstr): This is potentially unnecessary if it becomes the case that 50 // TODO(vmpstr): This is potentially unnecessary if it becomes the case that
51 // PairedPictureLayerQueue is fast enough to copy. In that case, we can use 51 // PairedPictureLayerQueue is fast enough to copy. In that case, we can use
52 // objects directly (ie std::vector<PairedPictureLayerQueue>. 52 // objects directly (ie std::vector<PairedPictureLayerQueue>.
53 ScopedPtrVector<PairedPictureLayerQueue> paired_queues_heap_; 53 ScopedPtrVector<PairedPictureLayerQueue> paired_queues_;
54 TreePriority tree_priority_; 54 TreePriority tree_priority_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue); 56 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue);
57 }; 57 };
58 58
59 } // namespace cc 59 } // namespace cc
60 60
61 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ 61 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_
OLDNEW
« no previous file with comments | « cc/resources/eviction_tile_priority_queue.cc ('k') | cc/resources/raster_tile_priority_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698