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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1296673004: Devtools/CC: Remove continuous repainting feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 1b72a046aac4cc549afc5cb4fec953a8a5aa30a3..1fe7837daf01805e2d0e19e8c6f302363eedb354 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1951,16 +1951,6 @@ void LayerTreeHostImpl::ActivateSyncTree() {
if (!tree_activation_callback_.is_null())
tree_activation_callback_.Run();
- if (debug_state_.continuous_painting) {
- const RenderingStats& stats =
- rendering_stats_instrumentation_->GetRenderingStats();
- // TODO(hendrikw): This requires a different metric when we commit directly
- // to the active tree. See crbug.com/429311.
- paint_time_counter_->SavePaintTime(
- stats.commit_to_activate_duration.GetLastTimeDelta() +
- stats.draw_duration.GetLastTimeDelta());
- }
-
scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation =
active_tree_->TakePendingPageScaleAnimation();
if (pending_page_scale_animation) {
@@ -3311,8 +3301,6 @@ void LayerTreeHostImpl::SetDebugState(
const LayerTreeDebugState& new_debug_state) {
if (LayerTreeDebugState::Equal(debug_state_, new_debug_state))
return;
- if (debug_state_.continuous_painting != new_debug_state.continuous_painting)
- paint_time_counter_->ClearHistory();
debug_state_ = new_debug_state;
UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy());

Powered by Google App Engine
This is Rietveld 408576698