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

Unified Diff: cc/tiled_layer.cc

Issue 11360066: cc: Remove WebCore rect use from the compositor, except within Region. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Signs 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
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698