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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2956563002: cc: Fix DCHECK failure for pending tree raster duration timer. (Closed)
Patch Set: Created 3 years, 6 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/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 6dbf6453753abff7f453354bb4b271ba428d23d4..8d63a313c34d886320cbf4633457ee7ab9282289 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -2116,6 +2116,12 @@ void LayerTreeHostImpl::ActivateSyncTree() {
// Reset will call the destructor and log the timer histogram.
pending_tree_duration_timer_.reset();
+ // In most cases, this will be reset in NotifyReadyToActivate, since we
+ // activate the pending tree only when its ready. But an activation may be
+ // forced, in the case of a context loss for instance, so reset it here as
+ // well.
+ pending_tree_raster_duration_timer_.reset();
+
// Process any requests in the UI resource queue. The request queue is
// given in LayerTreeHost::FinishCommitOnImplThread. This must take place
// before the swap.
« 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