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 "cc/layer_tree_host_impl.h" | 5 #include "cc/layer_tree_host_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 1661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1672 void LayerTreeHostImpl::renderingStats(RenderingStats* stats) const | 1672 void LayerTreeHostImpl::renderingStats(RenderingStats* stats) const |
1673 { | 1673 { |
1674 stats->numFramesSentToScreen = fpsCounter()->currentFrameNumber(); | 1674 stats->numFramesSentToScreen = fpsCounter()->currentFrameNumber(); |
1675 stats->droppedFrameCount = fpsCounter()->droppedFrameCount(); | 1675 stats->droppedFrameCount = fpsCounter()->droppedFrameCount(); |
1676 stats->numImplThreadScrolls = m_numImplThreadScrolls; | 1676 stats->numImplThreadScrolls = m_numImplThreadScrolls; |
1677 stats->numMainThreadScrolls = m_numMainThreadScrolls; | 1677 stats->numMainThreadScrolls = m_numMainThreadScrolls; |
1678 stats->numLayersDrawn = m_cumulativeNumLayersDrawn; | 1678 stats->numLayersDrawn = m_cumulativeNumLayersDrawn; |
1679 stats->numMissingTiles = m_cumulativeNumMissingTiles; | 1679 stats->numMissingTiles = m_cumulativeNumMissingTiles; |
1680 | 1680 |
1681 if (m_tileManager) | 1681 if (m_tileManager) |
1682 m_tileManager->renderingStats(stats); | 1682 m_tileManager->GetRenderingStats(stats); |
1683 } | 1683 } |
1684 | 1684 |
1685 void LayerTreeHostImpl::sendManagedMemoryStats( | 1685 void LayerTreeHostImpl::sendManagedMemoryStats( |
1686 size_t memoryVisibleBytes, | 1686 size_t memoryVisibleBytes, |
1687 size_t memoryVisibleAndNearbyBytes, | 1687 size_t memoryVisibleAndNearbyBytes, |
1688 size_t memoryUseBytes) | 1688 size_t memoryUseBytes) |
1689 { | 1689 { |
1690 if (!renderer()) | 1690 if (!renderer()) |
1691 return; | 1691 return; |
1692 | 1692 |
(...skipping 30 matching lines...) Expand all Loading... |
1723 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
nController(); | 1723 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
nController(); |
1724 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); | 1724 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); |
1725 if (scrollbarController && scrollbarController->animate(monotonicTime)) | 1725 if (scrollbarController && scrollbarController->animate(monotonicTime)) |
1726 m_client->setNeedsRedrawOnImplThread(); | 1726 m_client->setNeedsRedrawOnImplThread(); |
1727 | 1727 |
1728 for (size_t i = 0; i < layer->children().size(); ++i) | 1728 for (size_t i = 0; i < layer->children().size(); ++i) |
1729 animateScrollbarsRecursive(layer->children()[i], time); | 1729 animateScrollbarsRecursive(layer->children()[i], time); |
1730 } | 1730 } |
1731 | 1731 |
1732 } // namespace cc | 1732 } // namespace cc |
OLD | NEW |