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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |