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

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 12095071: Convert top controls to use DIP instead of PX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 , m_cumulativeNumMissingTiles(0) 152 , m_cumulativeNumMissingTiles(0)
153 , m_lastSentMemoryVisibleBytes(0) 153 , m_lastSentMemoryVisibleBytes(0)
154 , m_lastSentMemoryVisibleAndNearbyBytes(0) 154 , m_lastSentMemoryVisibleAndNearbyBytes(0)
155 , m_lastSentMemoryUseBytes(0) 155 , m_lastSentMemoryUseBytes(0)
156 , m_animationRegistrar(AnimationRegistrar::create()) 156 , m_animationRegistrar(AnimationRegistrar::create())
157 { 157 {
158 DCHECK(m_proxy->isImplThread()); 158 DCHECK(m_proxy->isImplThread());
159 didVisibilityChange(this, m_visible); 159 didVisibilityChange(this, m_visible);
160 160
161 if (settings.calculateTopControlsPosition) 161 if (settings.calculateTopControlsPosition)
162 m_topControlsManager = TopControlsManager::Create(this, settings.topCont rolsHeightPx); 162 m_topControlsManager = TopControlsManager::Create(this, settings.topCont rolsHeight);
163 163
164 // LTHI always has an active tree. 164 // LTHI always has an active tree.
165 m_activeTree = LayerTreeImpl::create(this); 165 m_activeTree = LayerTreeImpl::create(this);
166 } 166 }
167 167
168 LayerTreeHostImpl::~LayerTreeHostImpl() 168 LayerTreeHostImpl::~LayerTreeHostImpl()
169 { 169 {
170 DCHECK(m_proxy->isImplThread()); 170 DCHECK(m_proxy->isImplThread());
171 TRACE_EVENT0("cc", "LayerTreeHostImpl::~LayerTreeHostImpl()"); 171 TRACE_EVENT0("cc", "LayerTreeHostImpl::~LayerTreeHostImpl()");
172 172
(...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1681 LayerImpl* layer = getNonCompositedContentLayerRecursive(tree->RootLayer()); 1681 LayerImpl* layer = getNonCompositedContentLayerRecursive(tree->RootLayer());
1682 return layer ? layer->getPicture() : skia::RefPtr<SkPicture>(); 1682 return layer ? layer->getPicture() : skia::RefPtr<SkPicture>();
1683 } 1683 }
1684 1684
1685 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime) 1685 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime)
1686 { 1686 {
1687 m_paintTimeCounter->SavePaintTime(totalPaintTime); 1687 m_paintTimeCounter->SavePaintTime(totalPaintTime);
1688 } 1688 }
1689 1689
1690 } // namespace cc 1690 } // 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