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 = |