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

Unified Diff: cc/picture_layer_tiling_set.cc

Issue 11414238: implement the logic to set tile priorities based on current matrix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing comments Created 8 years 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/picture_layer_tiling_set.h ('k') | cc/tile_priority.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_tiling_set.cc
diff --git a/cc/picture_layer_tiling_set.cc b/cc/picture_layer_tiling_set.cc
index 5b49a0345580ea52cca9f39beb36ea484eee3d36..372ba2f1b88440bfe91b52d16c3c51e682d38abc 100644
--- a/cc/picture_layer_tiling_set.cc
+++ b/cc/picture_layer_tiling_set.cc
@@ -157,4 +157,18 @@ PictureLayerTilingSet::Iterator::operator bool() const {
region_iter_.has_rect();
}
+void PictureLayerTilingSet::UpdateTilePriorities(
+ const gfx::Size& device_viewport,
+ float layer_content_scale_x,
+ float layer_content_scale_y,
+ const gfx::Transform& last_screen_transform,
+ const gfx::Transform& current_screen_transform,
+ double time_delta) {
+ for (size_t i = 0; i < tilings_.size(); ++i) {
+ tilings_[i]->UpdateTilePriorities(
+ device_viewport, layer_content_scale_x, layer_content_scale_y,
+ last_screen_transform, current_screen_transform, time_delta);
+ }
+}
+
} // namespace cc
« no previous file with comments | « cc/picture_layer_tiling_set.h ('k') | cc/tile_priority.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698