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

Side by Side Diff: cc/tiles/tiling_set_raster_queue_required.h

Issue 2067213002: cc: Implement tile iteration order based on pyramid sequence. [old] Base URL: https://chromium.googlesource.com/chromium/src.git@tiling_data_fix
Patch Set: rebase -> used for smoothness tests Created 3 years, 10 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/tiles/tiling_set_raster_queue_all.cc ('k') | cc/tiles/tiling_set_raster_queue_required.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_TILING_SET_RASTER_QUEUE_REQUIRED_H_ 5 #ifndef CC_TILES_TILING_SET_RASTER_QUEUE_REQUIRED_H_
6 #define CC_TILES_TILING_SET_RASTER_QUEUE_REQUIRED_H_ 6 #define CC_TILES_TILING_SET_RASTER_QUEUE_REQUIRED_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/tiles/picture_layer_tiling_set.h" 9 #include "cc/tiles/picture_layer_tiling_set.h"
10 #include "cc/tiles/raster_tile_priority_queue.h" 10 #include "cc/tiles/raster_tile_priority_queue.h"
(...skipping 17 matching lines...) Expand all
28 private: 28 private:
29 // This iterator will return all tiles that are in the NOW bin on the given 29 // This iterator will return all tiles that are in the NOW bin on the given
30 // tiling. The queue can then use these tiles and further filter them based on 30 // tiling. The queue can then use these tiles and further filter them based on
31 // whether they are required or not. 31 // whether they are required or not.
32 class TilingIterator { 32 class TilingIterator {
33 public: 33 public:
34 TilingIterator(); 34 TilingIterator();
35 explicit TilingIterator(PictureLayerTiling* tiling, 35 explicit TilingIterator(PictureLayerTiling* tiling,
36 TilingData* tiling_data, 36 TilingData* tiling_data,
37 const gfx::Rect& rect); 37 const gfx::Rect& rect);
38 TilingIterator(const TilingIterator& other);
39 TilingIterator(TilingIterator&& other);
38 ~TilingIterator(); 40 ~TilingIterator();
39 41
42 TilingIterator& operator=(const TilingIterator& other);
43 TilingIterator& operator=(TilingIterator&& other);
44
40 bool done() const { return !current_tile_.tile(); } 45 bool done() const { return !current_tile_.tile(); }
41 const PrioritizedTile& operator*() const { return current_tile_; } 46 const PrioritizedTile& operator*() const { return current_tile_; }
42 TilingIterator& operator++(); 47 TilingIterator& operator++();
43 48
44 private: 49 private:
45 PictureLayerTiling* tiling_; 50 PictureLayerTiling* tiling_;
46 TilingData* tiling_data_; 51 TilingData* tiling_data_;
47 52
48 PrioritizedTile current_tile_; 53 PrioritizedTile current_tile_;
49 TilingData::Iterator visible_iterator_; 54 TilingData::Iterator visible_iterator_;
50 }; 55 };
51 56
52 bool IsTileRequired(const PrioritizedTile& prioritized_tile) const; 57 bool IsTileRequired(const PrioritizedTile& prioritized_tile) const;
53 58
54 TilingIterator iterator_; 59 TilingIterator iterator_;
55 RasterTilePriorityQueue::Type type_; 60 RasterTilePriorityQueue::Type type_;
56 }; 61 };
57 62
58 } // namespace cc 63 } // namespace cc
59 64
60 #endif // CC_TILES_TILING_SET_RASTER_QUEUE_REQUIRED_H_ 65 #endif // CC_TILES_TILING_SET_RASTER_QUEUE_REQUIRED_H_
OLDNEW
« no previous file with comments | « cc/tiles/tiling_set_raster_queue_all.cc ('k') | cc/tiles/tiling_set_raster_queue_required.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698