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

Unified Diff: cc/resources/picture_layer_tiling.cc

Issue 385123006: cc: Use ExpandRectIgnoringBordersToTileBoundsWithBordersEmpty. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « cc/base/tiling_data_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling.cc
diff --git a/cc/resources/picture_layer_tiling.cc b/cc/resources/picture_layer_tiling.cc
index da2412159737a1f7ee35332e8119d74d15f69c18..9a9c758388a3c77a7caeca0450887f19dfdd54b4 100644
--- a/cc/resources/picture_layer_tiling.cc
+++ b/cc/resources/picture_layer_tiling.cc
@@ -174,11 +174,9 @@ void PictureLayerTiling::UpdateTilesToCurrentPile(
void PictureLayerTiling::Invalidate(const Region& layer_region) {
std::vector<TileMapKey> new_tile_keys;
- // TODO(danakj): What we really want is to ignore border pixels that intersect
- // the rect when choosing which tiles it covers, then expand to those tiles
- // plus their border pixels.
gfx::Rect expanded_live_tiles_rect =
- tiling_data_.ExpandRectToTileBounds(live_tiles_rect_);
+ tiling_data_.ExpandRectIgnoringBordersToTileBoundsWithBorders(
+ live_tiles_rect_);
for (Region::Iterator iter(layer_region); iter.has_rect(); iter.next()) {
gfx::Rect layer_rect = iter.rect();
gfx::Rect content_rect =
« no previous file with comments | « cc/base/tiling_data_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698