| 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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 { | 563 { |
| 564 TRACE_EVENT0("cc", "CCLayerTreeHost::updateLayers"); | 564 TRACE_EVENT0("cc", "CCLayerTreeHost::updateLayers"); |
| 565 | 565 |
| 566 updateLayerScale(rootLayer, m_deviceScaleFactor, m_pageScaleFactor); | 566 updateLayerScale(rootLayer, m_deviceScaleFactor, m_pageScaleFactor); |
| 567 | 567 |
| 568 LayerList updateList; | 568 LayerList updateList; |
| 569 | 569 |
| 570 { | 570 { |
| 571 TRACE_EVENT0("cc", "CCLayerTreeHost::updateLayers::calcDrawEtc"); | 571 TRACE_EVENT0("cc", "CCLayerTreeHost::updateLayers::calcDrawEtc"); |
| 572 CCLayerTreeHostCommon::calculateDrawTransforms(rootLayer, deviceViewport
Size(), m_deviceScaleFactor, rendererCapabilities().maxTextureSize, updateList); | 572 CCLayerTreeHostCommon::calculateDrawTransforms(rootLayer, deviceViewport
Size(), m_deviceScaleFactor, rendererCapabilities().maxTextureSize, updateList); |
| 573 CCLayerTreeHostCommon::calculateVisibleRects(updateList); | |
| 574 } | 573 } |
| 575 | 574 |
| 576 // Reset partial texture update requests. | 575 // Reset partial texture update requests. |
| 577 m_partialTextureUpdateRequests = 0; | 576 m_partialTextureUpdateRequests = 0; |
| 578 | 577 |
| 579 bool needMoreUpdates = paintLayerContents(updateList, queue); | 578 bool needMoreUpdates = paintLayerContents(updateList, queue); |
| 580 if (m_triggerIdleUpdates && needMoreUpdates) | 579 if (m_triggerIdleUpdates && needMoreUpdates) |
| 581 setNeedsCommit(); | 580 setNeedsCommit(); |
| 582 | 581 |
| 583 for (size_t i = 0; i < updateList.size(); ++i) | 582 for (size_t i = 0; i < updateList.size(); ++i) |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 else | 853 else |
| 855 layer->notifyAnimationFinished(wallClockTime); | 854 layer->notifyAnimationFinished(wallClockTime); |
| 856 } | 855 } |
| 857 } | 856 } |
| 858 | 857 |
| 859 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) | 858 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) |
| 860 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); | 859 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); |
| 861 } | 860 } |
| 862 | 861 |
| 863 } // namespace cc | 862 } // namespace cc |
| OLD | NEW |