Chromium Code Reviews

Unified Diff: cc/resources/picture_layer_tiling.cc

Issue 478723002: cc: fix content_to_screen_scale in UpdateTilePriorities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't create another tiling Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | cc/resources/picture_layer_tiling_unittest.cc » ('j') | 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 12ab4af1d434b45c2a177c8ee97623e0c505a00c..414e22a2568b6901a0eeb1072780e64c23d9472e 100644
--- a/cc/resources/picture_layer_tiling.cc
+++ b/cc/resources/picture_layer_tiling.cc
@@ -503,8 +503,7 @@ void PictureLayerTiling::UpdateTilePriorities(
eviction_tiles_cache_valid_ = false;
TilePriority now_priority(resolution_, TilePriority::NOW, 0);
- float content_to_screen_scale =
- 1.0f / (contents_scale_ * ideal_contents_scale);
+ float content_to_screen_scale = ideal_contents_scale / contents_scale_;
// Assign now priority to all visible tiles.
bool include_borders = true;
« no previous file with comments | « no previous file | cc/resources/picture_layer_tiling_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine