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

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

Issue 1108773003: Revert of cc: Remove tile sharing from tilings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ALL_H_ 5 #ifndef CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_ALL_H_
6 #define CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_ALL_H_ 6 #define CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_ALL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 13 matching lines...) Expand all
24 PairedTilingSetQueue(); 24 PairedTilingSetQueue();
25 PairedTilingSetQueue(const PictureLayerImpl::Pair& layer_pair, 25 PairedTilingSetQueue(const PictureLayerImpl::Pair& layer_pair,
26 TreePriority tree_priority); 26 TreePriority tree_priority);
27 ~PairedTilingSetQueue(); 27 ~PairedTilingSetQueue();
28 28
29 bool IsEmpty() const; 29 bool IsEmpty() const;
30 Tile* Top(TreePriority tree_priority); 30 Tile* Top(TreePriority tree_priority);
31 void Pop(TreePriority tree_priority); 31 void Pop(TreePriority tree_priority);
32 32
33 WhichTree NextTileIteratorTree(TreePriority tree_priority) const; 33 WhichTree NextTileIteratorTree(TreePriority tree_priority) const;
34 void SkipTilesReturnedByTwin(TreePriority tree_priority);
34 35
35 scoped_refptr<base::trace_event::ConvertableToTraceFormat> StateAsValue() 36 scoped_refptr<base::trace_event::ConvertableToTraceFormat> StateAsValue()
36 const; 37 const;
37 38
38 const TilingSetRasterQueueAll* active_queue() const { 39 const TilingSetRasterQueueAll* active_queue() const {
39 return active_queue_.get(); 40 return active_queue_.get();
40 } 41 }
41 const TilingSetRasterQueueAll* pending_queue() const { 42 const TilingSetRasterQueueAll* pending_queue() const {
42 return pending_queue_.get(); 43 return pending_queue_.get();
43 } 44 }
44 45
45 private: 46 private:
46 scoped_ptr<TilingSetRasterQueueAll> active_queue_; 47 scoped_ptr<TilingSetRasterQueueAll> active_queue_;
47 scoped_ptr<TilingSetRasterQueueAll> pending_queue_; 48 scoped_ptr<TilingSetRasterQueueAll> pending_queue_;
49 bool has_both_layers_;
48 50
49 // Set of returned tiles (excluding the current one) for DCHECKing. 51 // Set of returned tiles (excluding the current one) for DCHECKing.
50 std::set<const Tile*> returned_tiles_for_debug_; 52 std::set<const Tile*> returned_tiles_for_debug_;
51 }; 53 };
52 54
53 RasterTilePriorityQueueAll(); 55 RasterTilePriorityQueueAll();
54 ~RasterTilePriorityQueueAll() override; 56 ~RasterTilePriorityQueueAll() override;
55 57
56 bool IsEmpty() const override; 58 bool IsEmpty() const override;
57 Tile* Top() override; 59 Tile* Top() override;
(...skipping 10 matching lines...) Expand all
68 // objects directly (ie std::vector<PairedTilingSetQueue>. 70 // objects directly (ie std::vector<PairedTilingSetQueue>.
69 ScopedPtrVector<PairedTilingSetQueue> paired_queues_; 71 ScopedPtrVector<PairedTilingSetQueue> paired_queues_;
70 TreePriority tree_priority_; 72 TreePriority tree_priority_;
71 73
72 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueueAll); 74 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueueAll);
73 }; 75 };
74 76
75 } // namespace cc 77 } // namespace cc
76 78
77 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_ALL_H_ 79 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_ALL_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_unittest.cc ('k') | cc/resources/raster_tile_priority_queue_all.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698