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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 bool needsAnimateLayers() const { return m_needsAnimateLayers; } | 244 bool needsAnimateLayers() const { return m_needsAnimateLayers; } |
245 void setNeedsAnimateLayers() { m_needsAnimateLayers = true; } | 245 void setNeedsAnimateLayers() { m_needsAnimateLayers = true; } |
246 | 246 |
247 void setNeedsRedraw(); | 247 void setNeedsRedraw(); |
248 | 248 |
249 void renderingStats(RenderingStats*) const; | 249 void renderingStats(RenderingStats*) const; |
250 | 250 |
251 void updateRootScrollLayerImplTransform(); | 251 void updateRootScrollLayerImplTransform(); |
252 | 252 |
| 253 void sendManagedMemoryStats( |
| 254 size_t memoryVisibleBytes, |
| 255 size_t memoryVisibleAndNearbyBytes, |
| 256 size_t memoryUseBytes); |
| 257 |
253 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } | 258 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } |
254 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get()
; } | 259 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get()
; } |
255 ResourceProvider* resourceProvider() const { return m_resourceProvider.get()
; } | 260 ResourceProvider* resourceProvider() const { return m_resourceProvider.get()
; } |
256 Proxy* proxy() const { return m_proxy; } | 261 Proxy* proxy() const { return m_proxy; } |
257 | 262 |
258 void setDebugState(const LayerTreeDebugState& debugState) { m_debugState = d
ebugState; } | 263 void setDebugState(const LayerTreeDebugState& debugState) { m_debugState = d
ebugState; } |
259 const LayerTreeDebugState& debugState() const { return m_debugState; } | 264 const LayerTreeDebugState& debugState() const { return m_debugState; } |
260 | 265 |
261 class CC_EXPORT CullRenderPassesWithCachedTextures { | 266 class CC_EXPORT CullRenderPassesWithCachedTextures { |
262 public: | 267 public: |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 PinchZoomViewport m_pinchZoomViewport; | 379 PinchZoomViewport m_pinchZoomViewport; |
375 | 380 |
376 scoped_ptr<FrameRateCounter> m_fpsCounter; | 381 scoped_ptr<FrameRateCounter> m_fpsCounter; |
377 scoped_ptr<DebugRectHistory> m_debugRectHistory; | 382 scoped_ptr<DebugRectHistory> m_debugRectHistory; |
378 | 383 |
379 size_t m_numImplThreadScrolls; | 384 size_t m_numImplThreadScrolls; |
380 size_t m_numMainThreadScrolls; | 385 size_t m_numMainThreadScrolls; |
381 | 386 |
382 size_t m_cumulativeNumLayersDrawn; | 387 size_t m_cumulativeNumLayersDrawn; |
383 | 388 |
| 389 size_t m_lastSentMemoryVisibleBytes; |
| 390 size_t m_lastSentMemoryVisibleAndNearbyBytes; |
| 391 size_t m_lastSentMemoryUseBytes; |
| 392 |
384 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 393 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
385 }; | 394 }; |
386 | 395 |
387 } // namespace cc | 396 } // namespace cc |
388 | 397 |
389 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 398 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |