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

Side by Side Diff: cc/trees/layer_tree_host_impl.cc

Issue 12780025: cc: Chromify rendering_stats (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 1184
1185 client_->OnCanDrawStateChanged(CanDraw()); 1185 client_->OnCanDrawStateChanged(CanDraw());
1186 client_->OnHasPendingTreeStateChanged(pending_tree_); 1186 client_->OnHasPendingTreeStateChanged(pending_tree_);
1187 client_->SetNeedsRedrawOnImplThread(); 1187 client_->SetNeedsRedrawOnImplThread();
1188 client_->RenewTreePriority(); 1188 client_->RenewTreePriority();
1189 1189
1190 if (tile_manager_ && debug_state_.continuous_painting) { 1190 if (tile_manager_ && debug_state_.continuous_painting) {
1191 RenderingStats stats = 1191 RenderingStats stats =
1192 rendering_stats_instrumentation_->GetRenderingStats(); 1192 rendering_stats_instrumentation_->GetRenderingStats();
1193 paint_time_counter_->SaveRasterizeTime( 1193 paint_time_counter_->SaveRasterizeTime(
1194 stats.totalRasterizeTimeForNowBinsOnPendingTree, 1194 stats.total_rasterize_time_for_now_bins_on_pending_tree,
1195 active_tree_->source_frame_number()); 1195 active_tree_->source_frame_number());
1196 } 1196 }
1197 } 1197 }
1198 1198
1199 void LayerTreeHostImpl::SetVisible(bool visible) { 1199 void LayerTreeHostImpl::SetVisible(bool visible) {
1200 DCHECK(proxy_->IsImplThread()); 1200 DCHECK(proxy_->IsImplThread());
1201 1201
1202 if (visible_ == visible) 1202 if (visible_ == visible)
1203 return; 1203 return;
1204 visible_ = visible; 1204 visible_ = visible;
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 debug_state_ = debug_state; 1965 debug_state_ = debug_state;
1966 } 1966 }
1967 1967
1968 void LayerTreeHostImpl::SavePaintTime(const base::TimeDelta& total_paint_time, 1968 void LayerTreeHostImpl::SavePaintTime(const base::TimeDelta& total_paint_time,
1969 int commit_number) { 1969 int commit_number) {
1970 DCHECK(debug_state_.continuous_painting); 1970 DCHECK(debug_state_.continuous_painting);
1971 paint_time_counter_->SavePaintTime(total_paint_time, commit_number); 1971 paint_time_counter_->SavePaintTime(total_paint_time, commit_number);
1972 } 1972 }
1973 1973
1974 } // namespace cc 1974 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698