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

Unified Diff: cc/resources/picture_layer_tiling.h

Issue 12583018: cc: Rename PictureLayerTiling(Set) Iterator to CoverageIterator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: cc/resources/picture_layer_tiling.h
diff --git a/cc/resources/picture_layer_tiling.h b/cc/resources/picture_layer_tiling.h
index bc613219fd9809315afa0d9f33326c218d7c7c5d..12b5eff9ecfaa8c18cacc7a0c0f5dceb34592d71 100644
--- a/cc/resources/picture_layer_tiling.h
+++ b/cc/resources/picture_layer_tiling.h
@@ -80,13 +80,13 @@ class CC_EXPORT PictureLayerTiling {
// (i.e. no valid resource) this tiling should still iterate over them.
// The union of all geometry_rect calls for each element iterated over should
// exactly equal content_rect and no two geometry_rects should intersect.
- class CC_EXPORT Iterator {
+ class CC_EXPORT CoverageIterator {
public:
- Iterator();
- Iterator(const PictureLayerTiling* tiling,
+ CoverageIterator();
+ CoverageIterator(const PictureLayerTiling* tiling,
float dest_scale,
gfx::Rect rect);
- ~Iterator();
+ ~CoverageIterator();
// Visible rect (no borders), always in the space of content_rect,
// regardless of the contents scale of the tiling.
@@ -102,7 +102,7 @@ class CC_EXPORT PictureLayerTiling {
Tile* operator->() const { return current_tile_; }
Tile* operator*() const { return current_tile_; }
- Iterator& operator++();
+ CoverageIterator& operator++();
operator bool() const { return tile_j_ <= bottom_; }
private:
@@ -167,7 +167,7 @@ class CC_EXPORT PictureLayerTiling {
int last_source_frame_number_;
double last_impl_frame_time_;
- friend class Iterator;
+ friend class CoverageIterator;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698