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

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

Issue 246673005: cc: Start using raster/eviction iterators in tile manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_PICTURE_LAYER_TILING_H_ 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_H_
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 ~TilingRasterTileIterator(); 52 ~TilingRasterTileIterator();
53 53
54 operator bool() const { 54 operator bool() const {
55 return current_tile_ && TileNeedsRaster(current_tile_); 55 return current_tile_ && TileNeedsRaster(current_tile_);
56 } 56 }
57 Tile* operator*() { return current_tile_; } 57 Tile* operator*() { return current_tile_; }
58 TilePriority::PriorityBin get_type() const { return type_; } 58 TilePriority::PriorityBin get_type() const { return type_; }
59 59
60 TilingRasterTileIterator& operator++(); 60 TilingRasterTileIterator& operator++();
61 61
62 bool HasTilesRequiredForActivation() const;
63
62 gfx::Rect TileBounds() const { 64 gfx::Rect TileBounds() const {
63 DCHECK(*this); 65 DCHECK(*this);
64 if (type_ == TilePriority::NOW) { 66 if (type_ == TilePriority::NOW) {
65 return tiling_->tiling_data_.TileBounds(visible_iterator_.index_x(), 67 return tiling_->tiling_data_.TileBounds(visible_iterator_.index_x(),
66 visible_iterator_.index_y()); 68 visible_iterator_.index_y());
67 } 69 }
68 return tiling_->tiling_data_.TileBounds(spiral_iterator_.index_x(), 70 return tiling_->tiling_data_.TileBounds(spiral_iterator_.index_x(),
69 spiral_iterator_.index_y()); 71 spiral_iterator_.index_y());
70 } 72 }
71 73
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 308
307 private: 309 private:
308 DISALLOW_ASSIGN(PictureLayerTiling); 310 DISALLOW_ASSIGN(PictureLayerTiling);
309 311
310 RectExpansionCache expansion_cache_; 312 RectExpansionCache expansion_cache_;
311 }; 313 };
312 314
313 } // namespace cc 315 } // namespace cc
314 316
315 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ 317 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698