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

Side by Side Diff: cc/layer_tree_impl.h

Issue 12774006: cc: Chromify Layer and LayerImpl classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MoreAndroidCompilings 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
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* RootLayer() 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
96 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; } 96 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; }
97 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { 97 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) {
98 hud_layer_ = layer_impl; 98 hud_layer_ = layer_impl;
99 } 99 }
(...skipping 125 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