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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1013273003: cc: Force an update on tile size after viewport resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: attempt 3? Created 5 years, 9 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
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 0bd757d1d3ff3a7c5a02030c9a5b8a883e801e89..ae79c59d14e62e04d9fe0abfb597cf5c1f3f1192 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -308,8 +308,8 @@ void LayerTreeHostImpl::CommitComplete() {
// more lazily when needed prior to drawing. Because invalidations may
// be coming from the main thread, it's safe to do an update for lcd text
// at this point and see if lcd text needs to be disabled on any layers.
- bool update_lcd_text = true;
- sync_tree()->UpdateDrawProperties(update_lcd_text);
+ bool first_update_after_commit = true;
+ sync_tree()->UpdateDrawProperties(first_update_after_commit);
// Start working on newly created tiles immediately if needed.
if (tile_manager_ && tile_priorities_dirty_)
PrepareTiles();
@@ -1048,8 +1048,8 @@ DrawResult LayerTreeHostImpl::PrepareToDraw(FrameData* frame) {
UMA_HISTOGRAM_CUSTOM_COUNTS(
"Compositing.NumActiveLayers", active_tree_->NumLayers(), 1, 400, 20);
- bool update_lcd_text = false;
- bool ok = active_tree_->UpdateDrawProperties(update_lcd_text);
+ bool first_update_after_commit = false;
+ bool ok = active_tree_->UpdateDrawProperties(first_update_after_commit);
DCHECK(ok) << "UpdateDrawProperties failed during draw";
// This will cause NotifyTileStateChanged() to be called for any visible tiles

Powered by Google App Engine
This is Rietveld 408576698