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

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 421183003: Revert of Add builders for tracing event's structural arguments (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/trees/layer_tree_host_impl.cc ('k') | cc/trees/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_TREES_LAYER_TREE_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 namespace BASE_HASH_NAMESPACE { 21 namespace BASE_HASH_NAMESPACE {
22 template<> 22 template<>
23 struct hash<cc::LayerImpl*> { 23 struct hash<cc::LayerImpl*> {
24 size_t operator()(cc::LayerImpl* ptr) const { 24 size_t operator()(cc::LayerImpl* ptr) const {
25 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); 25 return hash<size_t>()(reinterpret_cast<size_t>(ptr));
26 } 26 }
27 }; 27 };
28 } // namespace BASE_HASH_NAMESPACE 28 } // namespace BASE_HASH_NAMESPACE
29 #endif // COMPILER 29 #endif // COMPILER
30 30
31 namespace base {
32 namespace debug {
33 class TracedValue;
34 }
35 }
36
37 namespace cc { 31 namespace cc {
38 32
39 class ContextProvider; 33 class ContextProvider;
40 class DebugRectHistory; 34 class DebugRectHistory;
41 class FrameRateCounter; 35 class FrameRateCounter;
42 class HeadsUpDisplayLayerImpl; 36 class HeadsUpDisplayLayerImpl;
43 class LayerScrollOffsetDelegateProxy; 37 class LayerScrollOffsetDelegateProxy;
44 class LayerTreeDebugState; 38 class LayerTreeDebugState;
45 class LayerTreeHostImpl; 39 class LayerTreeHostImpl;
46 class LayerTreeImpl; 40 class LayerTreeImpl;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 99
106 // Tree specific methods exposed to layer-impl tree. 100 // Tree specific methods exposed to layer-impl tree.
107 // --------------------------------------------------------------------------- 101 // ---------------------------------------------------------------------------
108 void SetNeedsRedraw(); 102 void SetNeedsRedraw();
109 103
110 // TODO(nduca): These are implemented in cc files temporarily, but will become 104 // TODO(nduca): These are implemented in cc files temporarily, but will become
111 // trivial accessors in a followup patch. 105 // trivial accessors in a followup patch.
112 const LayerTreeDebugState& debug_state() const; 106 const LayerTreeDebugState& debug_state() const;
113 float device_scale_factor() const; 107 float device_scale_factor() const;
114 DebugRectHistory* debug_rect_history() const; 108 DebugRectHistory* debug_rect_history() const;
115 void AsValueInto(base::debug::TracedValue* dict) const; 109 scoped_ptr<base::Value> AsValue() const;
116 110
117 // Other public methods 111 // Other public methods
118 // --------------------------------------------------------------------------- 112 // ---------------------------------------------------------------------------
119 LayerImpl* root_layer() const { return root_layer_.get(); } 113 LayerImpl* root_layer() const { return root_layer_.get(); }
120 void SetRootLayer(scoped_ptr<LayerImpl>); 114 void SetRootLayer(scoped_ptr<LayerImpl>);
121 scoped_ptr<LayerImpl> DetachLayerTree(); 115 scoped_ptr<LayerImpl> DetachLayerTree();
122 116
123 void PushPropertiesTo(LayerTreeImpl* tree_impl); 117 void PushPropertiesTo(LayerTreeImpl* tree_impl);
124 118
125 int source_frame_number() const { return source_frame_number_; } 119 int source_frame_number() const { return source_frame_number_; }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 346
353 int render_surface_layer_list_id_; 347 int render_surface_layer_list_id_;
354 348
355 private: 349 private:
356 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 350 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
357 }; 351 };
358 352
359 } // namespace cc 353 } // namespace cc
360 354
361 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 355 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698