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

Unified Diff: cc/base/tiling_data.h

Issue 202753002: cc: Add a tiling iterator that doesn't include borders (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: danakj review Created 6 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 | « no previous file | cc/base/tiling_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/tiling_data.h
diff --git a/cc/base/tiling_data.h b/cc/base/tiling_data.h
index ee3a51ee77143e89709068e4b244dd1827a54564..d885c9bda6a5cd1065cf4a8c08eb4f9045bd6883 100644
--- a/cc/base/tiling_data.h
+++ b/cc/base/tiling_data.h
@@ -86,11 +86,13 @@ class CC_EXPORT TilingData {
int index_y_;
};
- // Iterate through all indices whose bounds + border intersect with |rect|.
+ // Iterate through tiles whose bounds + optional border intersect with |rect|.
class CC_EXPORT Iterator : public BaseIterator {
public:
Iterator();
- Iterator(const TilingData* tiling_data, const gfx::Rect& tiling_rect);
+ Iterator(const TilingData* tiling_data,
+ const gfx::Rect& tiling_rect,
+ bool include_borders);
Iterator& operator++();
private:
« no previous file with comments | « no previous file | cc/base/tiling_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698