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

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: rebase 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
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling.h
diff --git a/cc/resources/picture_layer_tiling.h b/cc/resources/picture_layer_tiling.h
index 743c064276ea35ae015d1831e914baac79bcebdf..67e757aa257c5496bd793df529b534818b41e4a3 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:
@@ -168,7 +168,7 @@ class CC_EXPORT PictureLayerTiling {
int last_source_frame_number_;
double last_impl_frame_time_;
- friend class Iterator;
+ friend class CoverageIterator;
private:
DISALLOW_ASSIGN(PictureLayerTiling);
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698