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

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

Issue 647683002: cc: Ensure to skip the first tile that would be returned by twin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 PairedPictureLayerQueue(); 21 PairedPictureLayerQueue();
22 PairedPictureLayerQueue(const PictureLayerImpl::Pair& layer_pair, 22 PairedPictureLayerQueue(const PictureLayerImpl::Pair& layer_pair,
23 TreePriority tree_priority); 23 TreePriority tree_priority);
24 ~PairedPictureLayerQueue(); 24 ~PairedPictureLayerQueue();
25 25
26 bool IsEmpty() const; 26 bool IsEmpty() const;
27 Tile* Top(TreePriority tree_priority); 27 Tile* Top(TreePriority tree_priority);
28 void Pop(TreePriority tree_priority); 28 void Pop(TreePriority tree_priority);
29 29
30 WhichTree NextTileIteratorTree(TreePriority tree_priority) const; 30 WhichTree NextTileIteratorTree(TreePriority tree_priority) const;
31 void SkipNextSharedTileReturnedByTwin(TreePriority tree_priority);
reveman 2014/10/10 14:27:23 I'm a bit confused by this name. Sounds like it wi
vmpstr 2014/10/10 15:24:05 No, I renamed to SkipTilesReturnedByTwin... It jus
31 32
32 PictureLayerImpl::LayerRasterTileIterator active_iterator; 33 PictureLayerImpl::LayerRasterTileIterator active_iterator;
33 PictureLayerImpl::LayerRasterTileIterator pending_iterator; 34 PictureLayerImpl::LayerRasterTileIterator pending_iterator;
34 bool has_both_layers; 35 bool has_both_layers;
35 36
36 // Set of returned tiles (excluding the current one) for DCHECKing. 37 // Set of returned tiles (excluding the current one) for DCHECKing.
37 std::set<const Tile*> returned_tiles_for_debug; 38 std::set<const Tile*> returned_tiles_for_debug;
38 }; 39 };
39 40
40 RasterTilePriorityQueue(); 41 RasterTilePriorityQueue();
(...skipping 13 matching lines...) Expand all
54 // objects directly (ie std::vector<PairedPictureLayerQueue>. 55 // objects directly (ie std::vector<PairedPictureLayerQueue>.
55 ScopedPtrVector<PairedPictureLayerQueue> paired_queues_; 56 ScopedPtrVector<PairedPictureLayerQueue> paired_queues_;
56 TreePriority tree_priority_; 57 TreePriority tree_priority_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue); 59 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue);
59 }; 60 };
60 61
61 } // namespace cc 62 } // namespace cc
62 63
63 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ 64 #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