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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 12149004: [cc] Show GPU memory usage and overage below FPS counter (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 | « cc/heads_up_display_layer_impl.cc ('k') | cc/layer_tree_host_impl.cc » ('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 #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 16 matching lines...) Expand all
27 27
28 class CompletionEvent; 28 class CompletionEvent;
29 class CompositorFrameMetadata; 29 class CompositorFrameMetadata;
30 class DebugRectHistory; 30 class DebugRectHistory;
31 class FrameRateCounter; 31 class FrameRateCounter;
32 class LayerImpl; 32 class LayerImpl;
33 class LayerTreeHostImplTimeSourceAdapter; 33 class LayerTreeHostImplTimeSourceAdapter;
34 class LayerTreeImpl; 34 class LayerTreeImpl;
35 class PageScaleAnimation; 35 class PageScaleAnimation;
36 class PaintTimeCounter; 36 class PaintTimeCounter;
37 class MemoryHistory;
37 class RenderPassDrawQuad; 38 class RenderPassDrawQuad;
38 class ResourceProvider; 39 class ResourceProvider;
39 class TopControlsManager; 40 class TopControlsManager;
40 struct RendererCapabilities; 41 struct RendererCapabilities;
41 struct RenderingStats; 42 struct RenderingStats;
42 43
43 // LayerTreeHost->Proxy callback interface. 44 // LayerTreeHost->Proxy callback interface.
44 class LayerTreeHostImplClient { 45 class LayerTreeHostImplClient {
45 public: 46 public:
46 virtual void didLoseOutputSurfaceOnImplThread() = 0; 47 virtual void didLoseOutputSurfaceOnImplThread() = 0;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 199
199 void renderingStats(RenderingStats*) const; 200 void renderingStats(RenderingStats*) const;
200 201
201 void sendManagedMemoryStats( 202 void sendManagedMemoryStats(
202 size_t memoryVisibleBytes, 203 size_t memoryVisibleBytes,
203 size_t memoryVisibleAndNearbyBytes, 204 size_t memoryVisibleAndNearbyBytes,
204 size_t memoryUseBytes); 205 size_t memoryUseBytes);
205 206
206 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } 207 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); }
207 PaintTimeCounter* paintTimeCounter() const { return m_paintTimeCounter.get() ; } 208 PaintTimeCounter* paintTimeCounter() const { return m_paintTimeCounter.get() ; }
209 MemoryHistory* memoryHistory() const { return m_memoryHistory.get(); }
208 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get() ; } 210 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get() ; }
209 ResourceProvider* resourceProvider() const { return m_resourceProvider.get() ; } 211 ResourceProvider* resourceProvider() const { return m_resourceProvider.get() ; }
210 TopControlsManager* topControlsManager() const { return m_topControlsManager .get(); } 212 TopControlsManager* topControlsManager() const { return m_topControlsManager .get(); }
211 213
212 Proxy* proxy() const { return m_proxy; } 214 Proxy* proxy() const { return m_proxy; }
213 215
214 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar .get(); } 216 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar .get(); }
215 217
216 void setDebugState(const LayerTreeDebugState& debugState) { m_debugState = d ebugState; } 218 void setDebugState(const LayerTreeDebugState& debugState) { m_debugState = d ebugState; }
217 const LayerTreeDebugState& debugState() const { return m_debugState; } 219 const LayerTreeDebugState& debugState() const { return m_debugState; }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 338
337 scoped_ptr<TopControlsManager> m_topControlsManager; 339 scoped_ptr<TopControlsManager> m_topControlsManager;
338 340
339 scoped_ptr<PageScaleAnimation> m_pageScaleAnimation; 341 scoped_ptr<PageScaleAnimation> m_pageScaleAnimation;
340 342
341 // This is used for ticking animations slowly when hidden. 343 // This is used for ticking animations slowly when hidden.
342 scoped_ptr<LayerTreeHostImplTimeSourceAdapter> m_timeSourceClientAdapter; 344 scoped_ptr<LayerTreeHostImplTimeSourceAdapter> m_timeSourceClientAdapter;
343 345
344 scoped_ptr<FrameRateCounter> m_fpsCounter; 346 scoped_ptr<FrameRateCounter> m_fpsCounter;
345 scoped_ptr<PaintTimeCounter> m_paintTimeCounter; 347 scoped_ptr<PaintTimeCounter> m_paintTimeCounter;
348 scoped_ptr<MemoryHistory> m_memoryHistory;
346 scoped_ptr<DebugRectHistory> m_debugRectHistory; 349 scoped_ptr<DebugRectHistory> m_debugRectHistory;
347 350
348 int64 m_numImplThreadScrolls; 351 int64 m_numImplThreadScrolls;
349 int64 m_numMainThreadScrolls; 352 int64 m_numMainThreadScrolls;
350 353
351 int64 m_cumulativeNumLayersDrawn; 354 int64 m_cumulativeNumLayersDrawn;
352 355
353 int64 m_cumulativeNumMissingTiles; 356 int64 m_cumulativeNumMissingTiles;
354 357
355 size_t m_lastSentMemoryVisibleBytes; 358 size_t m_lastSentMemoryVisibleBytes;
356 size_t m_lastSentMemoryVisibleAndNearbyBytes; 359 size_t m_lastSentMemoryVisibleAndNearbyBytes;
357 size_t m_lastSentMemoryUseBytes; 360 size_t m_lastSentMemoryUseBytes;
358 361
359 base::TimeTicks m_currentFrameTime; 362 base::TimeTicks m_currentFrameTime;
360 363
361 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 364 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
362 365
363 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 366 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
364 }; 367 };
365 368
366 } // namespace cc 369 } // namespace cc
367 370
368 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 371 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/heads_up_display_layer_impl.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698