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

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 11794004: cc: Remove DLOG(INFO) from cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months 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 | no next file » | no next file with comments »
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 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 ManagedMemoryPolicy::priorityCutoffToValue( 777 ManagedMemoryPolicy::priorityCutoffToValue(
778 m_visible ? policy.priorityCutoffWhenVisible : policy.priorityCutoff WhenNotVisible)); 778 m_visible ? policy.priorityCutoffWhenVisible : policy.priorityCutoff WhenNotVisible));
779 if (evictedResources) { 779 if (evictedResources) {
780 setContentsTexturesPurged(); 780 setContentsTexturesPurged();
781 m_client->setNeedsCommitOnImplThread(); 781 m_client->setNeedsCommitOnImplThread();
782 m_client->onCanDrawStateChanged(canDraw()); 782 m_client->onCanDrawStateChanged(canDraw());
783 } 783 }
784 m_client->sendManagedMemoryStats(); 784 m_client->sendManagedMemoryStats();
785 785
786 if (m_tileManager) { 786 if (m_tileManager) {
787 LOG(INFO) << "Setting up initial tile manager policy";
788 GlobalStateThatImpactsTilePriority new_state(m_tileManager->GlobalState()) ; 787 GlobalStateThatImpactsTilePriority new_state(m_tileManager->GlobalState()) ;
789 new_state.memory_limit_in_bytes = m_visible ? policy.bytesLimitWhenVisible : policy.bytesLimitWhenNotVisible; 788 new_state.memory_limit_in_bytes = m_visible ? policy.bytesLimitWhenVisible : policy.bytesLimitWhenNotVisible;
790 new_state.memory_limit_policy = ManagedMemoryPolicy::priorityCutoffToTileM emoryLimitPolicy( 789 new_state.memory_limit_policy = ManagedMemoryPolicy::priorityCutoffToTileM emoryLimitPolicy(
791 m_visible ? policy.priorityCutoffWhenVisible : policy.priorityCutoffWh enNotVisible); 790 m_visible ? policy.priorityCutoffWhenVisible : policy.priorityCutoffWh enNotVisible);
792 m_tileManager->SetGlobalState(new_state); 791 m_tileManager->SetGlobalState(new_state);
793 } 792 }
794 } 793 }
795 794
796 bool LayerTreeHostImpl::hasImplThread() const 795 bool LayerTreeHostImpl::hasImplThread() const
797 { 796 {
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio nController(); 1717 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio nController();
1719 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); 1718 double monotonicTime = (time - base::TimeTicks()).InSecondsF();
1720 if (scrollbarController && scrollbarController->animate(monotonicTime)) 1719 if (scrollbarController && scrollbarController->animate(monotonicTime))
1721 m_client->setNeedsRedrawOnImplThread(); 1720 m_client->setNeedsRedrawOnImplThread();
1722 1721
1723 for (size_t i = 0; i < layer->children().size(); ++i) 1722 for (size_t i = 0; i < layer->children().size(); ++i)
1724 animateScrollbarsRecursive(layer->children()[i], time); 1723 animateScrollbarsRecursive(layer->children()[i], time);
1725 } 1724 }
1726 1725
1727 } // namespace cc 1726 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698