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

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

Issue 13637017: Delete layout_viewport_size. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android Created 7 years, 8 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/trees/layer_tree_host_unittest_delegated.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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // Tree specific methods exposed to layer-impl tree. 72 // Tree specific methods exposed to layer-impl tree.
73 // --------------------------------------------------------------------------- 73 // ---------------------------------------------------------------------------
74 void SetNeedsRedraw(); 74 void SetNeedsRedraw();
75 75
76 // TODO(nduca): These are implemented in cc files temporarily, but will become 76 // TODO(nduca): These are implemented in cc files temporarily, but will become
77 // trivial accessors in a followup patch. 77 // trivial accessors in a followup patch.
78 const LayerTreeDebugState& debug_state() const; 78 const LayerTreeDebugState& debug_state() const;
79 float device_scale_factor() const; 79 float device_scale_factor() const;
80 gfx::Size device_viewport_size() const; 80 gfx::Size device_viewport_size() const;
81 gfx::Size layout_viewport_size() const;
82 std::string layer_tree_as_text() const; 81 std::string layer_tree_as_text() const;
83 DebugRectHistory* debug_rect_history() const; 82 DebugRectHistory* debug_rect_history() const;
84 scoped_ptr<base::Value> AsValue() const; 83 scoped_ptr<base::Value> AsValue() const;
85 84
86 // Other public methods 85 // Other public methods
87 // --------------------------------------------------------------------------- 86 // ---------------------------------------------------------------------------
88 LayerImpl* root_layer() const { return root_layer_.get(); } 87 LayerImpl* root_layer() const { return root_layer_.get(); }
89 void SetRootLayer(scoped_ptr<LayerImpl>); 88 void SetRootLayer(scoped_ptr<LayerImpl>);
90 scoped_ptr<LayerImpl> DetachLayerTree(); 89 scoped_ptr<LayerImpl> DetachLayerTree();
91 90
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // In impl-side painting mode, this is true when the tree may contain 245 // In impl-side painting mode, this is true when the tree may contain
247 // structural differences relative to the active tree. 246 // structural differences relative to the active tree.
248 bool needs_full_tree_sync_; 247 bool needs_full_tree_sync_;
249 248
250 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 249 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
251 }; 250 };
252 251
253 } // namespace cc 252 } // namespace cc
254 253
255 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 254 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_delegated.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698