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

Unified Diff: cc/base/tiling_data.cc

Issue 367833003: cc: Start using raster/eviction iterators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: perf test fix Created 6 years, 5 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
Index: cc/base/tiling_data.cc
diff --git a/cc/base/tiling_data.cc b/cc/base/tiling_data.cc
index 185bbed40198f6f6c63fb2594acb7d38578a9fd6..c477c212f783104636a4d4045d8dd0365a20af89 100644
--- a/cc/base/tiling_data.cc
+++ b/cc/base/tiling_data.cc
@@ -488,15 +488,16 @@ TilingData::SpiralDifferenceIterator::SpiralDifferenceIterator(
}
gfx::Rect consider(consider_rect);
- gfx::Rect ignore(ignore_rect);
- gfx::Rect center(center_rect);
consider.Intersect(tiling_data_->tiling_rect());
- ignore.Intersect(tiling_data_->tiling_rect());
if (consider.IsEmpty()) {
done();
return;
}
+ gfx::Rect center(center_rect);
+ gfx::Rect ignore(ignore_rect);
+ ignore.Intersect(tiling_data_->tiling_rect());
+
consider_left_ =
tiling_data_->FirstBorderTileXIndexFromSrcCoord(consider.x());
consider_top_ = tiling_data_->FirstBorderTileYIndexFromSrcCoord(consider.y());
« no previous file with comments | « cc/BUILD.gn ('k') | cc/cc.gyp » ('j') | cc/resources/eviction_tile_priority_queue.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698