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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 11198005: NOT READY FOR REVIEW - switch to a subscriber model for rendering stats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing file. Created 8 years, 1 month 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/layer_tree_host.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 CCLayerTreeHostImpl_h 5 #ifndef CCLayerTreeHostImpl_h
6 #define CCLayerTreeHostImpl_h 6 #define CCLayerTreeHostImpl_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 10 matching lines...) Expand all
21 21
22 class CompletionEvent; 22 class CompletionEvent;
23 class DebugRectHistory; 23 class DebugRectHistory;
24 class FrameRateCounter; 24 class FrameRateCounter;
25 class HeadsUpDisplayLayerImpl; 25 class HeadsUpDisplayLayerImpl;
26 class LayerImpl; 26 class LayerImpl;
27 class LayerTreeHostImplTimeSourceAdapter; 27 class LayerTreeHostImplTimeSourceAdapter;
28 class PageScaleAnimation; 28 class PageScaleAnimation;
29 class RenderPassDrawQuad; 29 class RenderPassDrawQuad;
30 class ResourceProvider; 30 class ResourceProvider;
31 class RenderingStatsSubscriber;
31 struct RendererCapabilities; 32 struct RendererCapabilities;
32 struct RenderingStats; 33 struct RenderingStats;
33 34
34 // LayerTreeHost->Proxy callback interface. 35 // LayerTreeHost->Proxy callback interface.
35 class LayerTreeHostImplClient { 36 class LayerTreeHostImplClient {
36 public: 37 public:
37 virtual void didLoseContextOnImplThread() = 0; 38 virtual void didLoseContextOnImplThread() = 0;
38 virtual void onSwapBuffersCompleteOnImplThread() = 0; 39 virtual void onSwapBuffersCompleteOnImplThread() = 0;
39 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) = 0; 40 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) = 0;
40 virtual void onCanDrawStateChanged(bool canDraw) = 0; 41 virtual void onCanDrawStateChanged(bool canDraw) = 0;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 218
218 bool hasTransparentBackground() const { return m_hasTransparentBackground; } 219 bool hasTransparentBackground() const { return m_hasTransparentBackground; }
219 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro und = transparent; } 220 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro und = transparent; }
220 221
221 bool needsAnimateLayers() const { return m_needsAnimateLayers; } 222 bool needsAnimateLayers() const { return m_needsAnimateLayers; }
222 void setNeedsAnimateLayers() { m_needsAnimateLayers = true; } 223 void setNeedsAnimateLayers() { m_needsAnimateLayers = true; }
223 224
224 void setNeedsRedraw(); 225 void setNeedsRedraw();
225 226
226 void renderingStats(RenderingStats*) const; 227 void renderingStats(RenderingStats*) const;
228 void startRecordingRenderingStats();
229 void stopRecordingRenderingStats(RenderingStats*);
227 230
228 void updateRootScrollLayerImplTransform(); 231 void updateRootScrollLayerImplTransform();
229 232
230 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } 233 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); }
231 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get() ; } 234 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get() ; }
232 ResourceProvider* resourceProvider() const { return m_resourceProvider.get() ; } 235 ResourceProvider* resourceProvider() const { return m_resourceProvider.get() ; }
233 236
234 class CullRenderPassesWithCachedTextures { 237 class CullRenderPassesWithCachedTextures {
235 public: 238 public:
236 bool shouldRemoveRenderPass(const RenderPassDrawQuad&, const FrameData&) const; 239 bool shouldRemoveRenderPass(const RenderPassDrawQuad&, const FrameData&) const;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 LayerSorter m_layerSorter; 341 LayerSorter m_layerSorter;
339 342
340 // List of visible layers for the most recently prepared frame. Used for 343 // List of visible layers for the most recently prepared frame. Used for
341 // rendering and input event hit testing. 344 // rendering and input event hit testing.
342 LayerList m_renderSurfaceLayerList; 345 LayerList m_renderSurfaceLayerList;
343 346
344 PinchZoomViewport m_pinchZoomViewport; 347 PinchZoomViewport m_pinchZoomViewport;
345 348
346 scoped_ptr<FrameRateCounter> m_fpsCounter; 349 scoped_ptr<FrameRateCounter> m_fpsCounter;
347 scoped_ptr<DebugRectHistory> m_debugRectHistory; 350 scoped_ptr<DebugRectHistory> m_debugRectHistory;
351 scoped_ptr<RenderingStatsSubscriber> m_renderingStatsSubscriber;
348 352
349 size_t m_numImplThreadScrolls; 353 size_t m_numImplThreadScrolls;
350 size_t m_numMainThreadScrolls; 354 size_t m_numMainThreadScrolls;
351 355
352 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 356 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
353 }; 357 };
354 358
355 } // namespace cc 359 } // namespace cc
356 360
357 #endif 361 #endif
OLDNEW
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698