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

Unified Diff: cc/base/tiling_data.h

Issue 505913003: cc: Remove and Create the correct tiles when resizing live tiles rect (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: livetiles: . Created 6 years, 4 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') | cc/resources/picture_layer_tiling.cc » ('J')
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 7cd9457095fac4c840c76f38ae20b3df021f205d..2353b77110b76ef1c0377b979627e736b6075d71 100644
--- a/cc/base/tiling_data.h
+++ b/cc/base/tiling_data.h
@@ -103,14 +103,16 @@ class CC_EXPORT TilingData {
int bottom_;
};
- // Iterate through all indices whose bounds + border intersect with
+ // Iterate through all indices whose bounds intersect with
// |consider| but which also do not intersect with |ignore|.
+ // When |include_borders| is true, consider the tile bounds including
+ // their borders.
class CC_EXPORT DifferenceIterator : public BaseIterator {
public:
- DifferenceIterator(
- const TilingData* tiling_data,
- const gfx::Rect& consider_rect,
- const gfx::Rect& ignore_rect);
+ DifferenceIterator(const TilingData* tiling_data,
+ const gfx::Rect& consider_rect,
+ const gfx::Rect& ignore_rect,
+ bool include_borders);
DifferenceIterator& operator++();
private:
« no previous file with comments | « no previous file | cc/base/tiling_data.cc » ('j') | cc/resources/picture_layer_tiling.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698