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 #ifndef CC_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 void updateRootScrollLayerImplTransform(); | 258 void updateRootScrollLayerImplTransform(); |
259 | 259 |
260 void sendManagedMemoryStats( | 260 void sendManagedMemoryStats( |
261 size_t memoryVisibleBytes, | 261 size_t memoryVisibleBytes, |
262 size_t memoryVisibleAndNearbyBytes, | 262 size_t memoryVisibleAndNearbyBytes, |
263 size_t memoryUseBytes); | 263 size_t memoryUseBytes); |
264 | 264 |
265 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } | 265 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } |
266 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get()
; } | 266 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get()
; } |
267 ResourceProvider* resourceProvider() const { return m_resourceProvider.get()
; } | 267 ResourceProvider* resourceProvider() const { return m_resourceProvider.get()
; } |
| 268 |
268 Proxy* proxy() const { return m_proxy; } | 269 Proxy* proxy() const { return m_proxy; } |
269 | 270 |
270 void setDebugState(const LayerTreeDebugState& debugState) { m_debugState = d
ebugState; } | 271 void setDebugState(const LayerTreeDebugState& debugState) { m_debugState = d
ebugState; } |
271 const LayerTreeDebugState& debugState() const { return m_debugState; } | 272 const LayerTreeDebugState& debugState() const { return m_debugState; } |
272 | 273 |
273 class CC_EXPORT CullRenderPassesWithCachedTextures { | 274 class CC_EXPORT CullRenderPassesWithCachedTextures { |
274 public: | 275 public: |
275 bool shouldRemoveRenderPass(const RenderPassDrawQuad&, const FrameData&)
const; | 276 bool shouldRemoveRenderPass(const RenderPassDrawQuad&, const FrameData&)
const; |
276 | 277 |
277 // Iterates from the root first, in order to remove the surfaces closest | 278 // Iterates from the root first, in order to remove the surfaces closest |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 size_t m_lastSentMemoryVisibleBytes; | 398 size_t m_lastSentMemoryVisibleBytes; |
398 size_t m_lastSentMemoryVisibleAndNearbyBytes; | 399 size_t m_lastSentMemoryVisibleAndNearbyBytes; |
399 size_t m_lastSentMemoryUseBytes; | 400 size_t m_lastSentMemoryUseBytes; |
400 | 401 |
401 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 402 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
402 }; | 403 }; |
403 | 404 |
404 } // namespace cc | 405 } // namespace cc |
405 | 406 |
406 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 407 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |