| 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 "CCLayerTreeHost.h" | 7 #include "CCLayerTreeHost.h" |
| 8 | 8 |
| 9 #include "CCFontAtlas.h" | 9 #include "CCFontAtlas.h" |
| 10 #include "CCGraphicsContext.h" | 10 #include "CCGraphicsContext.h" |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 return ret; | 339 return ret; |
| 340 } | 340 } |
| 341 | 341 |
| 342 void CCLayerTreeHost::finishAllRendering() | 342 void CCLayerTreeHost::finishAllRendering() |
| 343 { | 343 { |
| 344 if (!m_rendererInitialized) | 344 if (!m_rendererInitialized) |
| 345 return; | 345 return; |
| 346 m_proxy->finishAllRendering(); | 346 m_proxy->finishAllRendering(); |
| 347 } | 347 } |
| 348 | 348 |
| 349 void CCLayerTreeHost::renderingStats(CCRenderingStats& stats) const | 349 void CCLayerTreeHost::renderingStats(CCRenderingStats* stats) const |
| 350 { | 350 { |
| 351 stats = m_renderingStats; | 351 *stats = m_renderingStats; |
| 352 m_proxy->implSideRenderingStats(stats); | 352 m_proxy->renderingStats(stats); |
| 353 } | 353 } |
| 354 | 354 |
| 355 const RendererCapabilities& CCLayerTreeHost::rendererCapabilities() const | 355 const RendererCapabilities& CCLayerTreeHost::rendererCapabilities() const |
| 356 { | 356 { |
| 357 return m_proxy->rendererCapabilities(); | 357 return m_proxy->rendererCapabilities(); |
| 358 } | 358 } |
| 359 | 359 |
| 360 void CCLayerTreeHost::setNeedsAnimate() | 360 void CCLayerTreeHost::setNeedsAnimate() |
| 361 { | 361 { |
| 362 ASSERT(CCProxy::hasImplThread()); | 362 ASSERT(CCProxy::hasImplThread()); |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 else | 854 else |
| 855 layer->notifyAnimationFinished(wallClockTime); | 855 layer->notifyAnimationFinished(wallClockTime); |
| 856 } | 856 } |
| 857 } | 857 } |
| 858 | 858 |
| 859 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) | 859 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) |
| 860 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); | 860 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); |
| 861 } | 861 } |
| 862 | 862 |
| 863 } // namespace cc | 863 } // namespace cc |
| OLD | NEW |