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

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: update 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 6921a8b870d037afa6c40f3c39bbc0e15171a40c..00ebb5799f5da34d408ccf8ffe71918cc060ee62 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