| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |