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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 14378007: cc: Early-out UpdateTilePriorities if the layer has no tilings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index 3a60f093c54c68f5f5355c699d12b3965429ff4d..83576d462c511cc420d0da09cce0921d35691e95 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -262,6 +262,9 @@ void PictureLayerImpl::DumpLayerProperties(std::string*, int indent) const {
}
void PictureLayerImpl::UpdateTilePriorities() {
+ if (!tilings_->num_tilings())
+ return;
+
UpdateLCDTextStatus();
int current_source_frame_number = layer_tree_impl()->source_frame_number();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698