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

Unified Diff: cc/picture_layer_impl.cc

Issue 12259027: cc: Simplify the logic for deciding to update tile priorities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/layer_tree_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_impl.cc
diff --git a/cc/picture_layer_impl.cc b/cc/picture_layer_impl.cc
index fc0e9d0952ba72ff45a05da559b6c6cb73c815de..85447ad172d0dad23aa0ebdb9c0e95f7764b9f4e 100644
--- a/cc/picture_layer_impl.cc
+++ b/cc/picture_layer_impl.cc
@@ -216,6 +216,14 @@ void PictureLayerImpl::dumpLayerProperties(std::string*, int indent) const {
}
void PictureLayerImpl::updateTilePriorities() {
+ if (!tilings_->num_tilings()) {
+ last_screen_space_transform_ = screenSpaceTransform();
+ last_bounds_ = bounds();
+ last_content_bounds_ = contentBounds();
+ last_content_scale_ = contentsScaleX();
+ return;
+ }
+
int current_source_frame_number = layerTreeImpl()->source_frame_number();
double current_frame_time =
(layerTreeImpl()->CurrentFrameTime() - base::TimeTicks()).InSecondsF();
« no previous file with comments | « cc/layer_tree_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698