| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |