| 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.h" | 5 #include "cc/trees/layer_tree_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <stack> | 8 #include <stack> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); | 366 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); |
| 367 } | 367 } |
| 368 | 368 |
| 369 void LayerTreeHost::WillCommit() { | 369 void LayerTreeHost::WillCommit() { |
| 370 client_->WillCommit(); | 370 client_->WillCommit(); |
| 371 } | 371 } |
| 372 | 372 |
| 373 void LayerTreeHost::UpdateHudLayer() { | 373 void LayerTreeHost::UpdateHudLayer() { |
| 374 if (debug_state_.ShowHudInfo()) { | 374 if (debug_state_.ShowHudInfo()) { |
| 375 if (!hud_layer_.get()) | 375 if (!hud_layer_.get()) |
| 376 hud_layer_ = HeadsUpDisplayLayer::Create(); | 376 hud_layer_ = HeadsUpDisplayLayer::Create(settings_.hud_layer_settings); |
| 377 | 377 |
| 378 if (root_layer_.get() && !hud_layer_->parent()) | 378 if (root_layer_.get() && !hud_layer_->parent()) |
| 379 root_layer_->AddChild(hud_layer_); | 379 root_layer_->AddChild(hud_layer_); |
| 380 } else if (hud_layer_.get()) { | 380 } else if (hud_layer_.get()) { |
| 381 hud_layer_->RemoveFromParent(); | 381 hud_layer_->RemoveFromParent(); |
| 382 hud_layer_ = NULL; | 382 hud_layer_ = NULL; |
| 383 } | 383 } |
| 384 } | 384 } |
| 385 | 385 |
| 386 void LayerTreeHost::CommitComplete() { | 386 void LayerTreeHost::CommitComplete() { |
| (...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1301 const BeginFrameArgs& args) const { | 1301 const BeginFrameArgs& args) const { |
| 1302 client_->SendBeginFramesToChildren(args); | 1302 client_->SendBeginFramesToChildren(args); |
| 1303 } | 1303 } |
| 1304 | 1304 |
| 1305 void LayerTreeHost::SetAuthoritativeVSyncInterval( | 1305 void LayerTreeHost::SetAuthoritativeVSyncInterval( |
| 1306 const base::TimeDelta& interval) { | 1306 const base::TimeDelta& interval) { |
| 1307 proxy_->SetAuthoritativeVSyncInterval(interval); | 1307 proxy_->SetAuthoritativeVSyncInterval(interval); |
| 1308 } | 1308 } |
| 1309 | 1309 |
| 1310 } // namespace cc | 1310 } // namespace cc |
| OLD | NEW |