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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 SkColor background_color() const { return background_color_; } | 255 SkColor background_color() const { return background_color_; } |
256 void set_background_color(SkColor color) { background_color_ = color; } | 256 void set_background_color(SkColor color) { background_color_ = color; } |
257 | 257 |
258 bool has_transparent_background() const { | 258 bool has_transparent_background() const { |
259 return has_transparent_background_; | 259 return has_transparent_background_; |
260 } | 260 } |
261 void set_has_transparent_background(bool transparent) { | 261 void set_has_transparent_background(bool transparent) { |
262 has_transparent_background_ = transparent; | 262 has_transparent_background_ = transparent; |
263 } | 263 } |
264 | 264 |
| 265 bool is_fullscreen() const { return is_fullscreen_; } |
| 266 void set_is_fullscreen(bool is_fullscreen) { is_fullscreen_ = is_fullscreen; } |
| 267 |
265 void UpdatePropertyTreeScrollingAndAnimationFromMainThread( | 268 void UpdatePropertyTreeScrollingAndAnimationFromMainThread( |
266 bool is_impl_side_update); | 269 bool is_impl_side_update); |
267 void SetPageScaleOnActiveTree(float active_page_scale); | 270 void SetPageScaleOnActiveTree(float active_page_scale); |
268 void PushPageScaleFromMainThread(float page_scale_factor, | 271 void PushPageScaleFromMainThread(float page_scale_factor, |
269 float min_page_scale_factor, | 272 float min_page_scale_factor, |
270 float max_page_scale_factor); | 273 float max_page_scale_factor); |
271 float current_page_scale_factor() const { | 274 float current_page_scale_factor() const { |
272 return page_scale_factor()->Current(IsActiveTree()); | 275 return page_scale_factor()->Current(IsActiveTree()); |
273 } | 276 } |
274 float min_page_scale_factor() const { return min_page_scale_factor_; } | 277 float min_page_scale_factor() const { return min_page_scale_factor_; } |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 bool ClampBrowserControlsShownRatio(); | 560 bool ClampBrowserControlsShownRatio(); |
558 | 561 |
559 LayerTreeHostImpl* layer_tree_host_impl_; | 562 LayerTreeHostImpl* layer_tree_host_impl_; |
560 int source_frame_number_; | 563 int source_frame_number_; |
561 int is_first_frame_after_commit_tracker_; | 564 int is_first_frame_after_commit_tracker_; |
562 LayerImpl* root_layer_for_testing_; | 565 LayerImpl* root_layer_for_testing_; |
563 HeadsUpDisplayLayerImpl* hud_layer_; | 566 HeadsUpDisplayLayerImpl* hud_layer_; |
564 PropertyTrees property_trees_; | 567 PropertyTrees property_trees_; |
565 SkColor background_color_; | 568 SkColor background_color_; |
566 bool has_transparent_background_; | 569 bool has_transparent_background_; |
| 570 bool is_fullscreen_; |
567 | 571 |
568 int last_scrolled_scroll_node_index_; | 572 int last_scrolled_scroll_node_index_; |
569 | 573 |
570 ViewportLayerIds viewport_layer_ids_; | 574 ViewportLayerIds viewport_layer_ids_; |
571 | 575 |
572 LayerSelection selection_; | 576 LayerSelection selection_; |
573 | 577 |
574 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_; | 578 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_; |
575 float min_page_scale_factor_; | 579 float min_page_scale_factor_; |
576 float max_page_scale_factor_; | 580 float max_page_scale_factor_; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 // lifecycle states. See: |LayerTreeLifecycle|. | 666 // lifecycle states. See: |LayerTreeLifecycle|. |
663 LayerTreeLifecycle lifecycle_; | 667 LayerTreeLifecycle lifecycle_; |
664 | 668 |
665 private: | 669 private: |
666 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 670 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
667 }; | 671 }; |
668 | 672 |
669 } // namespace cc | 673 } // namespace cc |
670 | 674 |
671 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 675 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |