Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 11568027: cc: Add TileManager interface that allows LTHI to determine when to activate pending tree. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Determine bin for each tree. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/tile_manager.h » ('j') | cc/tile_manager.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | cc/tile_manager.h » ('j') | cc/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698