| 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 "CCFontAtlas.h" | 9 #include "CCFontAtlas.h" |
| 10 #include "CCGraphicsContext.h" | 10 #include "CCGraphicsContext.h" |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 return ret; | 336 return ret; |
| 337 } | 337 } |
| 338 | 338 |
| 339 void LayerTreeHost::finishAllRendering() | 339 void LayerTreeHost::finishAllRendering() |
| 340 { | 340 { |
| 341 if (!m_rendererInitialized) | 341 if (!m_rendererInitialized) |
| 342 return; | 342 return; |
| 343 m_proxy->finishAllRendering(); | 343 m_proxy->finishAllRendering(); |
| 344 } | 344 } |
| 345 | 345 |
| 346 void LayerTreeHost::setDeferCommits(bool deferCommits) |
| 347 { |
| 348 m_proxy->setDeferCommits(deferCommits); |
| 349 } |
| 350 |
| 351 void LayerTreeHost::didDeferCommit() |
| 352 { |
| 353 } |
| 354 |
| 346 void LayerTreeHost::renderingStats(RenderingStats* stats) const | 355 void LayerTreeHost::renderingStats(RenderingStats* stats) const |
| 347 { | 356 { |
| 348 *stats = m_renderingStats; | 357 *stats = m_renderingStats; |
| 349 m_proxy->renderingStats(stats); | 358 m_proxy->renderingStats(stats); |
| 350 } | 359 } |
| 351 | 360 |
| 352 const RendererCapabilities& LayerTreeHost::rendererCapabilities() const | 361 const RendererCapabilities& LayerTreeHost::rendererCapabilities() const |
| 353 { | 362 { |
| 354 return m_proxy->rendererCapabilities(); | 363 return m_proxy->rendererCapabilities(); |
| 355 } | 364 } |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 else | 826 else |
| 818 layer->notifyAnimationFinished(wallClockTime); | 827 layer->notifyAnimationFinished(wallClockTime); |
| 819 } | 828 } |
| 820 } | 829 } |
| 821 | 830 |
| 822 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) | 831 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) |
| 823 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); | 832 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); |
| 824 } | 833 } |
| 825 | 834 |
| 826 } // namespace cc | 835 } // namespace cc |
| OLD | NEW |