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

Side by Side Diff: cc/layer_tree_impl.h

Issue 11820014: cc: PaintTimeCounter display on the HudLayer in continuous painting mode (Closed) Base URL: http://git.chromium.org/chromium/src.git@paint
Patch Set: updated to base::TimeDelta APIs in PaintTimeCounter Created 7 years, 11 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
« no previous file with comments | « cc/layer_tree_debug_state.cc ('k') | cc/layer_tree_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_IMPL_H_ 5 #ifndef CC_LAYER_TREE_IMPL_H_
6 #define CC_LAYER_TREE_IMPL_H_ 6 #define CC_LAYER_TREE_IMPL_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "cc/layer_impl.h" 9 #include "cc/layer_impl.h"
10 10
(...skipping 11 matching lines...) Expand all
22 namespace cc { 22 namespace cc {
23 23
24 class DebugRectHistory; 24 class DebugRectHistory;
25 class FrameRateCounter; 25 class FrameRateCounter;
26 class HeadsUpDisplayLayerImpl; 26 class HeadsUpDisplayLayerImpl;
27 class LayerTreeDebugState; 27 class LayerTreeDebugState;
28 class LayerTreeHostImpl; 28 class LayerTreeHostImpl;
29 class LayerTreeImpl; 29 class LayerTreeImpl;
30 class LayerTreeSettings; 30 class LayerTreeSettings;
31 class OutputSurface; 31 class OutputSurface;
32 class PaintTimeCounter;
32 class PinchZoomViewport; 33 class PinchZoomViewport;
33 class ResourceProvider; 34 class ResourceProvider;
34 class TileManager; 35 class TileManager;
35 36
36 class CC_EXPORT LayerTreeImpl { 37 class CC_EXPORT LayerTreeImpl {
37 public: 38 public:
38 typedef std::vector<LayerImpl*> LayerList; 39 typedef std::vector<LayerImpl*> LayerList;
39 40
40 static scoped_ptr<LayerTreeImpl> create(LayerTreeHostImpl* layer_tree_host_imp l) 41 static scoped_ptr<LayerTreeImpl> create(LayerTreeHostImpl* layer_tree_host_imp l)
41 { 42 {
42 return make_scoped_ptr(new LayerTreeImpl(layer_tree_host_impl)); 43 return make_scoped_ptr(new LayerTreeImpl(layer_tree_host_impl));
43 } 44 }
44 virtual ~LayerTreeImpl(); 45 virtual ~LayerTreeImpl();
45 46
46 // Methods called by the layer tree that pass-through or access LTHI. 47 // Methods called by the layer tree that pass-through or access LTHI.
47 // --------------------------------------------------------------------------- 48 // ---------------------------------------------------------------------------
48 const LayerTreeSettings& settings() const; 49 const LayerTreeSettings& settings() const;
49 OutputSurface* output_surface() const; 50 OutputSurface* output_surface() const;
50 ResourceProvider* resource_provider() const; 51 ResourceProvider* resource_provider() const;
51 TileManager* tile_manager() const; 52 TileManager* tile_manager() const;
52 FrameRateCounter* frame_rate_counter() const; 53 FrameRateCounter* frame_rate_counter() const;
54 PaintTimeCounter* paint_time_counter() const;
53 bool IsActiveTree() const; 55 bool IsActiveTree() const;
54 bool IsPendingTree() const; 56 bool IsPendingTree() const;
55 LayerImpl* FindActiveTreeLayerById(int id); 57 LayerImpl* FindActiveTreeLayerById(int id);
56 LayerImpl* FindPendingTreeLayerById(int id); 58 LayerImpl* FindPendingTreeLayerById(int id);
57 int MaxTextureSize() const; 59 int MaxTextureSize() const;
58 bool PinchGestureActive() const; 60 bool PinchGestureActive() const;
59 61
60 // Tree specific methods exposed to layer-impl tree. 62 // Tree specific methods exposed to layer-impl tree.
61 // --------------------------------------------------------------------------- 63 // ---------------------------------------------------------------------------
62 void SetNeedsRedraw(); 64 void SetNeedsRedraw();
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // List of visible layers for the most recently prepared frame. Used for 160 // List of visible layers for the most recently prepared frame. Used for
159 // rendering and input event hit testing. 161 // rendering and input event hit testing.
160 LayerList render_surface_layer_list_; 162 LayerList render_surface_layer_list_;
161 163
162 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 164 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
163 }; 165 };
164 166
165 } 167 }
166 168
167 #endif // CC_LAYER_TREE_IMPL_H_ 169 #endif // CC_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_debug_state.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698