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

Unified Diff: cc/tiles/picture_layer_tiling_set.cc

Issue 2022613002: cc: Restore the space of interest area padding to be ideal contents space. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | cc/trees/layer_tree_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/picture_layer_tiling_set.cc
diff --git a/cc/tiles/picture_layer_tiling_set.cc b/cc/tiles/picture_layer_tiling_set.cc
index b4e942a23af8b76b5a673adc1ead2260c5b8c2ac..469080f8d85cee8faab7c48b4f5f130936744453 100644
--- a/cc/tiles/picture_layer_tiling_set.cc
+++ b/cc/tiles/picture_layer_tiling_set.cc
@@ -474,8 +474,9 @@ void PictureLayerTilingSet::UpdatePriorityRects(
// We keep things as floats in here.
if (!visible_rect_in_layer_space.IsEmpty()) {
gfx::RectF eventually_rectf(visible_rect_in_layer_space);
- eventually_rectf.Inset(-tiling_interest_area_padding_,
- -tiling_interest_area_padding_);
+ eventually_rectf.Inset(
+ -tiling_interest_area_padding_ / ideal_contents_scale,
+ -tiling_interest_area_padding_ / ideal_contents_scale);
if (eventually_rectf.Intersects(
gfx::RectF(gfx::SizeF(raster_source_->GetSize())))) {
visible_rect_in_layer_space_ = visible_rect_in_layer_space;
« no previous file with comments | « no previous file | cc/trees/layer_tree_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698