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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 bool hasTransparentBackground() const { return m_hasTransparentBackground; } | 248 bool hasTransparentBackground() const { return m_hasTransparentBackground; } |
249 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } | 249 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } |
250 bool needsAnimateLayers() const { return !m_activeAnimationControllers.empty
(); } | 250 bool needsAnimateLayers() const { return !m_activeAnimationControllers.empty
(); } |
251 | 251 |
252 void setNeedsRedraw(); | 252 void setNeedsRedraw(); |
253 | 253 |
254 void renderingStats(RenderingStats*) const; | 254 void renderingStats(RenderingStats*) const; |
255 | 255 |
256 void updateRootScrollLayerImplTransform(); | 256 void updateRootScrollLayerImplTransform(); |
257 | 257 |
| 258 void sendManagedMemoryStats( |
| 259 size_t memoryVisibleBytes, |
| 260 size_t memoryVisibleAndNearbyBytes, |
| 261 size_t memoryUseBytes); |
| 262 |
258 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } | 263 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } |
259 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get()
; } | 264 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get()
; } |
260 ResourceProvider* resourceProvider() const { return m_resourceProvider.get()
; } | 265 ResourceProvider* resourceProvider() const { return m_resourceProvider.get()
; } |
261 Proxy* proxy() const { return m_proxy; } | 266 Proxy* proxy() const { return m_proxy; } |
262 | 267 |
263 void setDebugState(const LayerTreeDebugState& debugState) { m_debugState = d
ebugState; } | 268 void setDebugState(const LayerTreeDebugState& debugState) { m_debugState = d
ebugState; } |
264 const LayerTreeDebugState& debugState() const { return m_debugState; } | 269 const LayerTreeDebugState& debugState() const { return m_debugState; } |
265 | 270 |
266 class CC_EXPORT CullRenderPassesWithCachedTextures { | 271 class CC_EXPORT CullRenderPassesWithCachedTextures { |
267 public: | 272 public: |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 int64 m_cumulativeNumLayersDrawn; | 393 int64 m_cumulativeNumLayersDrawn; |
389 | 394 |
390 int64 m_cumulativeNumMissingTiles; | 395 int64 m_cumulativeNumMissingTiles; |
391 | 396 |
392 AnimationControllerSet m_activeAnimationControllers; | 397 AnimationControllerSet m_activeAnimationControllers; |
393 | 398 |
394 #if !defined(NDEBUG) | 399 #if !defined(NDEBUG) |
395 AnimationControllerSet m_allAnimationControllers; | 400 AnimationControllerSet m_allAnimationControllers; |
396 #endif | 401 #endif |
397 | 402 |
| 403 size_t m_lastSentMemoryVisibleBytes; |
| 404 size_t m_lastSentMemoryVisibleAndNearbyBytes; |
| 405 size_t m_lastSentMemoryUseBytes; |
| 406 |
398 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 407 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
399 }; | 408 }; |
400 | 409 |
401 } // namespace cc | 410 } // namespace cc |
402 | 411 |
403 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 412 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |