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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 const ScrollNode* CurrentlyScrollingNode() const; | 214 const ScrollNode* CurrentlyScrollingNode() const; |
215 int LastScrolledScrollNodeIndex() const; | 215 int LastScrolledScrollNodeIndex() const; |
216 void SetCurrentlyScrollingNode(ScrollNode* node); | 216 void SetCurrentlyScrollingNode(ScrollNode* node); |
217 void ClearCurrentlyScrollingNode(); | 217 void ClearCurrentlyScrollingNode(); |
218 | 218 |
219 void SetViewportLayersFromIds(int overscroll_elasticity_layer, | 219 void SetViewportLayersFromIds(int overscroll_elasticity_layer, |
220 int page_scale_layer_id, | 220 int page_scale_layer_id, |
221 int inner_viewport_scroll_layer_id, | 221 int inner_viewport_scroll_layer_id, |
222 int outer_viewport_scroll_layer_id); | 222 int outer_viewport_scroll_layer_id); |
223 void ClearViewportLayers(); | 223 void ClearViewportLayers(); |
224 // Sets the viewport layer types. This depends on the viewport layers from | |
225 // SetViewportLayersFromIds and the viewport layer's scroll_clip_layer_ids. | |
226 void UpdateViewportLayerTypes(); | |
227 LayerImpl* OverscrollElasticityLayer() { | 224 LayerImpl* OverscrollElasticityLayer() { |
228 return LayerById(overscroll_elasticity_layer_id_); | 225 return LayerById(overscroll_elasticity_layer_id_); |
229 } | 226 } |
230 LayerImpl* PageScaleLayer() { return LayerById(page_scale_layer_id_); } | 227 LayerImpl* PageScaleLayer() { return LayerById(page_scale_layer_id_); } |
231 void ApplySentScrollAndScaleDeltasFromAbortedCommit(); | 228 void ApplySentScrollAndScaleDeltasFromAbortedCommit(); |
232 | 229 |
233 SkColor background_color() const { return background_color_; } | 230 SkColor background_color() const { return background_color_; } |
234 void set_background_color(SkColor color) { background_color_ = color; } | 231 void set_background_color(SkColor color) { background_color_ = color; } |
235 | 232 |
236 bool has_transparent_background() const { | 233 bool has_transparent_background() const { |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 // lifecycle states. See: |LayerTreeLifecycle|. | 619 // lifecycle states. See: |LayerTreeLifecycle|. |
623 LayerTreeLifecycle lifecycle_; | 620 LayerTreeLifecycle lifecycle_; |
624 | 621 |
625 private: | 622 private: |
626 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 623 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
627 }; | 624 }; |
628 | 625 |
629 } // namespace cc | 626 } // namespace cc |
630 | 627 |
631 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 628 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |