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

Unified Diff: cc/tiled_layer.cc

Issue 11361072: Remove WebCore::IntRect usage from compositor, except within Region. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/tiled_layer.cc
diff --git a/cc/tiled_layer.cc b/cc/tiled_layer.cc
index ae13eeb6696890566dfe6588001046fc46d5627a..74d1402daae45e7bc7ecb597150acd5cc36a2020 100644
--- a/cc/tiled_layer.cc
+++ b/cc/tiled_layer.cc
@@ -151,9 +151,8 @@ void TiledLayer::updateBounds()
Region oldRegion = gfx::Rect(gfx::Point(), oldBounds);
Region newRegion = gfx::Rect(gfx::Point(), newBounds);
newRegion.Subtract(oldRegion);
- Vector<WebCore::IntRect> rects = newRegion.rects();
- for (size_t i = 0; i < rects.size(); ++i)
- invalidateContentRect(cc::IntRect(rects[i]));
+ for (Region::Iterator newRects(newRegion); newRects.has_rect(); newRects.next())
+ invalidateContentRect(newRects.rect());
}
void TiledLayer::setTileSize(const gfx::Size& size)
« cc/stubs/Region.h ('K') | « cc/stubs/int_rect.h ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698