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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
333 m_triggerIdleUpdates = false; | 333 m_triggerIdleUpdates = false; |
334 bool ret = m_proxy->compositeAndReadback(pixels, rect); | 334 bool ret = m_proxy->compositeAndReadback(pixels, rect); |
335 m_triggerIdleUpdates = true; | 335 m_triggerIdleUpdates = true; |
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 | |
jamesr
2012/10/24 19:34:27
spurious newline here, remove
jonathan.backer
2012/10/24 21:29:38
Done.
| |
343 m_proxy->finishAllRendering(); | 344 m_proxy->finishAllRendering(); |
344 } | 345 } |
345 | 346 |
347 void LayerTreeHost::setDeferCommits(bool deferCommits) | |
348 { | |
349 m_proxy->setDeferCommits(deferCommits); | |
350 } | |
351 | |
346 void LayerTreeHost::renderingStats(RenderingStats* stats) const | 352 void LayerTreeHost::renderingStats(RenderingStats* stats) const |
347 { | 353 { |
348 *stats = m_renderingStats; | 354 *stats = m_renderingStats; |
349 m_proxy->renderingStats(stats); | 355 m_proxy->renderingStats(stats); |
350 } | 356 } |
351 | 357 |
352 const RendererCapabilities& LayerTreeHost::rendererCapabilities() const | 358 const RendererCapabilities& LayerTreeHost::rendererCapabilities() const |
353 { | 359 { |
354 return m_proxy->rendererCapabilities(); | 360 return m_proxy->rendererCapabilities(); |
355 } | 361 } |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
817 else | 823 else |
818 layer->notifyAnimationFinished(wallClockTime); | 824 layer->notifyAnimationFinished(wallClockTime); |
819 } | 825 } |
820 } | 826 } |
821 | 827 |
822 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex) | 828 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex) |
823 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime); | 829 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime); |
824 } | 830 } |
825 | 831 |
826 } // namespace cc | 832 } // namespace cc |
OLD | NEW |