| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "cc/layer_tree_host.h" | 7 #include "cc/layer_tree_host.h" |
| 8 | 8 |
| 9 #include "Region.h" | 9 #include "Region.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 return ret; | 338 return ret; |
| 339 } | 339 } |
| 340 | 340 |
| 341 void LayerTreeHost::finishAllRendering() | 341 void LayerTreeHost::finishAllRendering() |
| 342 { | 342 { |
| 343 if (!m_rendererInitialized) | 343 if (!m_rendererInitialized) |
| 344 return; | 344 return; |
| 345 m_proxy->finishAllRendering(); | 345 m_proxy->finishAllRendering(); |
| 346 } | 346 } |
| 347 | 347 |
| 348 void LayerTreeHost::setDeferCommits(bool deferCommits) |
| 349 { |
| 350 m_proxy->setDeferCommits(deferCommits); |
| 351 } |
| 352 |
| 353 void LayerTreeHost::didDeferCommit() |
| 354 { |
| 355 } |
| 356 |
| 348 void LayerTreeHost::renderingStats(RenderingStats* stats) const | 357 void LayerTreeHost::renderingStats(RenderingStats* stats) const |
| 349 { | 358 { |
| 350 *stats = m_renderingStats; | 359 *stats = m_renderingStats; |
| 351 m_proxy->renderingStats(stats); | 360 m_proxy->renderingStats(stats); |
| 352 } | 361 } |
| 353 | 362 |
| 354 const RendererCapabilities& LayerTreeHost::rendererCapabilities() const | 363 const RendererCapabilities& LayerTreeHost::rendererCapabilities() const |
| 355 { | 364 { |
| 356 return m_proxy->rendererCapabilities(); | 365 return m_proxy->rendererCapabilities(); |
| 357 } | 366 } |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 else | 811 else |
| 803 layer->notifyAnimationFinished(wallClockTime); | 812 layer->notifyAnimationFinished(wallClockTime); |
| 804 } | 813 } |
| 805 } | 814 } |
| 806 | 815 |
| 807 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) | 816 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) |
| 808 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); | 817 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); |
| 809 } | 818 } |
| 810 | 819 |
| 811 } // namespace cc | 820 } // namespace cc |
| OLD | NEW |