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

Side by Side Diff: cc/layer_tree_impl.h

Issue 12648005: cc: Chromify the LayerTreeHostImpl class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compl Created 7 years, 9 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/layer_tree_host_unittest_scroll.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 "base/values.h" 9 #include "base/values.h"
10 #include "cc/layer_impl.h" 10 #include "cc/layer_impl.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // Tree specific methods exposed to layer-impl tree. 69 // Tree specific methods exposed to layer-impl tree.
70 // --------------------------------------------------------------------------- 70 // ---------------------------------------------------------------------------
71 void SetNeedsRedraw(); 71 void SetNeedsRedraw();
72 72
73 // TODO(nduca): These are implemented in cc files temporarily, but will become 73 // TODO(nduca): These are implemented in cc files temporarily, but will become
74 // trivial accessors in a followup patch. 74 // trivial accessors in a followup patch.
75 const LayerTreeDebugState& debug_state() const; 75 const LayerTreeDebugState& debug_state() const;
76 float device_scale_factor() const; 76 float device_scale_factor() const;
77 gfx::Size device_viewport_size() const; 77 gfx::Size device_viewport_size() const;
78 const gfx::Size& layout_viewport_size() const; 78 gfx::Size layout_viewport_size() const;
79 std::string layer_tree_as_text() const; 79 std::string layer_tree_as_text() const;
80 DebugRectHistory* debug_rect_history() const; 80 DebugRectHistory* debug_rect_history() const;
81 scoped_ptr<base::Value> AsValue() const; 81 scoped_ptr<base::Value> AsValue() const;
82 82
83 // Other public methods 83 // Other public methods
84 // --------------------------------------------------------------------------- 84 // ---------------------------------------------------------------------------
85 LayerImpl* RootLayer() const { return root_layer_.get(); } 85 LayerImpl* root_layer() const { return root_layer_.get(); }
86 void SetRootLayer(scoped_ptr<LayerImpl>); 86 void SetRootLayer(scoped_ptr<LayerImpl>);
87 scoped_ptr<LayerImpl> DetachLayerTree(); 87 scoped_ptr<LayerImpl> DetachLayerTree();
88 88
89 void PushPropertiesTo(LayerTreeImpl*); 89 void PushPropertiesTo(LayerTreeImpl*);
90 90
91 int source_frame_number() const { return source_frame_number_; } 91 int source_frame_number() const { return source_frame_number_; }
92 void set_source_frame_number(int frame_number) { 92 void set_source_frame_number(int frame_number) {
93 source_frame_number_ = frame_number; 93 source_frame_number_ = frame_number;
94 } 94 }
95 95
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // In impl-side painting mode, this is true when the tree may contain 225 // In impl-side painting mode, this is true when the tree may contain
226 // structural differences relative to the active tree. 226 // structural differences relative to the active tree.
227 bool needs_full_tree_sync_; 227 bool needs_full_tree_sync_;
228 228
229 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 229 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
230 }; 230 };
231 231
232 } 232 }
233 233
234 #endif // CC_LAYER_TREE_IMPL_H_ 234 #endif // CC_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host_unittest_scroll.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698