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

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 12210050: Expose FS show/hide thresholds to Command Line (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 10 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 | cc/layer_tree_settings.h » ('j') | 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 , m_lastSentMemoryVisibleBytes(0) 167 , m_lastSentMemoryVisibleBytes(0)
168 , m_lastSentMemoryVisibleAndNearbyBytes(0) 168 , m_lastSentMemoryVisibleAndNearbyBytes(0)
169 , m_lastSentMemoryUseBytes(0) 169 , m_lastSentMemoryUseBytes(0)
170 , m_animationRegistrar(AnimationRegistrar::create()) 170 , m_animationRegistrar(AnimationRegistrar::create())
171 { 171 {
172 DCHECK(m_proxy->isImplThread()); 172 DCHECK(m_proxy->isImplThread());
173 didVisibilityChange(this, m_visible); 173 didVisibilityChange(this, m_visible);
174 174
175 setDebugState(settings.initialDebugState); 175 setDebugState(settings.initialDebugState);
176 176
177 if (settings.calculateTopControlsPosition) 177 if (settings.calculateTopControlsPosition) {
178 m_topControlsManager = TopControlsManager::Create(this, settings.topCont rolsHeight); 178 m_topControlsManager = TopControlsManager::Create(this,
179 settings.topControlsHe ight,
180 settings.topControlsSh owThreshold,
181 settings.topControlsHi deThreshold);
182 }
179 183
180 setDebugState(settings.initialDebugState); 184 setDebugState(settings.initialDebugState);
181 185
182 // LTHI always has an active tree. 186 // LTHI always has an active tree.
183 m_activeTree = LayerTreeImpl::create(this); 187 m_activeTree = LayerTreeImpl::create(this);
184 } 188 }
185 189
186 LayerTreeHostImpl::~LayerTreeHostImpl() 190 LayerTreeHostImpl::~LayerTreeHostImpl()
187 { 191 {
188 DCHECK(m_proxy->isImplThread()); 192 DCHECK(m_proxy->isImplThread());
(...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after
1793 m_tileManager->SetRecordRenderingStats(m_debugState.recordRenderingStats ()); 1797 m_tileManager->SetRecordRenderingStats(m_debugState.recordRenderingStats ());
1794 } 1798 }
1795 1799
1796 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime, int commitNumber) 1800 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime, int commitNumber)
1797 { 1801 {
1798 DCHECK(m_debugState.continuousPainting); 1802 DCHECK(m_debugState.continuousPainting);
1799 m_paintTimeCounter->SavePaintTime(totalPaintTime, commitNumber); 1803 m_paintTimeCounter->SavePaintTime(totalPaintTime, commitNumber);
1800 } 1804 }
1801 1805
1802 } // namespace cc 1806 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698