| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 void LayerTreeHost::DidBeginMainFrame() { | 264 void LayerTreeHost::DidBeginMainFrame() { |
| 265 client_->DidBeginMainFrame(); | 265 client_->DidBeginMainFrame(); |
| 266 } | 266 } |
| 267 | 267 |
| 268 void LayerTreeHost::UpdateClientAnimations(base::TimeTicks frame_begin_time) { | 268 void LayerTreeHost::UpdateClientAnimations(base::TimeTicks frame_begin_time) { |
| 269 animating_ = true; | 269 animating_ = true; |
| 270 client_->Animate((frame_begin_time - base::TimeTicks()).InSecondsF()); | 270 client_->Animate((frame_begin_time - base::TimeTicks()).InSecondsF()); |
| 271 animating_ = false; | 271 animating_ = false; |
| 272 } | 272 } |
| 273 | 273 |
| 274 void LayerTreeHost::DidStopFlinging() { | |
| 275 proxy_->MainThreadHasStoppedFlinging(); | |
| 276 } | |
| 277 | |
| 278 void LayerTreeHost::Layout() { | 274 void LayerTreeHost::Layout() { |
| 279 client_->Layout(); | 275 client_->Layout(); |
| 280 } | 276 } |
| 281 | 277 |
| 282 void LayerTreeHost::BeginCommitOnImplThread(LayerTreeHostImpl* host_impl) { | 278 void LayerTreeHost::BeginCommitOnImplThread(LayerTreeHostImpl* host_impl) { |
| 283 DCHECK(proxy_->IsImplThread()); | 279 DCHECK(proxy_->IsImplThread()); |
| 284 TRACE_EVENT0("cc", "LayerTreeHost::CommitTo"); | 280 TRACE_EVENT0("cc", "LayerTreeHost::CommitTo"); |
| 285 } | 281 } |
| 286 | 282 |
| 287 // This function commits the LayerTreeHost to an impl tree. When modifying | 283 // This function commits the LayerTreeHost to an impl tree. When modifying |
| (...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1284 | 1280 |
| 1285 bool LayerTreeHost::ScheduleMicroBenchmark( | 1281 bool LayerTreeHost::ScheduleMicroBenchmark( |
| 1286 const std::string& benchmark_name, | 1282 const std::string& benchmark_name, |
| 1287 scoped_ptr<base::Value> value, | 1283 scoped_ptr<base::Value> value, |
| 1288 const MicroBenchmark::DoneCallback& callback) { | 1284 const MicroBenchmark::DoneCallback& callback) { |
| 1289 return micro_benchmark_controller_.ScheduleRun( | 1285 return micro_benchmark_controller_.ScheduleRun( |
| 1290 benchmark_name, value.Pass(), callback); | 1286 benchmark_name, value.Pass(), callback); |
| 1291 } | 1287 } |
| 1292 | 1288 |
| 1293 } // namespace cc | 1289 } // namespace cc |
| OLD | NEW |