| 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/layer_tree_host.h" | 5 #include "cc/layer_tree_host.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 void LayerTreeHost::updateAnimations(base::TimeTicks frameBeginTime) | 215 void LayerTreeHost::updateAnimations(base::TimeTicks frameBeginTime) |
| 216 { | 216 { |
| 217 m_animating = true; | 217 m_animating = true; |
| 218 m_client->animate((frameBeginTime - base::TimeTicks()).InSecondsF()); | 218 m_client->animate((frameBeginTime - base::TimeTicks()).InSecondsF()); |
| 219 animateLayers(frameBeginTime); | 219 animateLayers(frameBeginTime); |
| 220 m_animating = false; | 220 m_animating = false; |
| 221 | 221 |
| 222 m_renderingStats.numAnimationFrames++; | 222 m_renderingStats.numAnimationFrames++; |
| 223 } | 223 } |
| 224 | 224 |
| 225 void LayerTreeHost::didStopFlinging() |
| 226 { |
| 227 m_proxy->mainThreadHasStoppedFlinging(); |
| 228 } |
| 229 |
| 225 void LayerTreeHost::layout() | 230 void LayerTreeHost::layout() |
| 226 { | 231 { |
| 227 m_client->layout(); | 232 m_client->layout(); |
| 228 } | 233 } |
| 229 | 234 |
| 230 void LayerTreeHost::beginCommitOnImplThread(LayerTreeHostImpl* hostImpl) | 235 void LayerTreeHost::beginCommitOnImplThread(LayerTreeHostImpl* hostImpl) |
| 231 { | 236 { |
| 232 DCHECK(m_proxy->isImplThread()); | 237 DCHECK(m_proxy->isImplThread()); |
| 233 TRACE_EVENT0("cc", "LayerTreeHost::commitTo"); | 238 TRACE_EVENT0("cc", "LayerTreeHost::commitTo"); |
| 234 } | 239 } |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 else | 872 else |
| 868 layer->notifyAnimationFinished(wallClockTime.ToDoubleT()); | 873 layer->notifyAnimationFinished(wallClockTime.ToDoubleT()); |
| 869 } | 874 } |
| 870 } | 875 } |
| 871 | 876 |
| 872 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) | 877 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) |
| 873 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); | 878 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); |
| 874 } | 879 } |
| 875 | 880 |
| 876 } // namespace cc | 881 } // namespace cc |
| OLD | NEW |