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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 SkColor background_color() const { return background_color_; } | 245 SkColor background_color() const { return background_color_; } |
246 void set_background_color(SkColor color) { background_color_ = color; } | 246 void set_background_color(SkColor color) { background_color_ = color; } |
247 | 247 |
248 bool has_transparent_background() const { | 248 bool has_transparent_background() const { |
249 return has_transparent_background_; | 249 return has_transparent_background_; |
250 } | 250 } |
251 void set_has_transparent_background(bool transparent) { | 251 void set_has_transparent_background(bool transparent) { |
252 has_transparent_background_ = transparent; | 252 has_transparent_background_ = transparent; |
253 } | 253 } |
254 | 254 |
| 255 bool is_fullscreen() const { return is_fullscreen_; } |
| 256 void set_is_fullscreen(bool is_fullscreen) { is_fullscreen_ = is_fullscreen; } |
| 257 |
255 void UpdatePropertyTreeScrollingAndAnimationFromMainThread( | 258 void UpdatePropertyTreeScrollingAndAnimationFromMainThread( |
256 bool is_impl_side_update); | 259 bool is_impl_side_update); |
257 void SetPageScaleOnActiveTree(float active_page_scale); | 260 void SetPageScaleOnActiveTree(float active_page_scale); |
258 void PushPageScaleFromMainThread(float page_scale_factor, | 261 void PushPageScaleFromMainThread(float page_scale_factor, |
259 float min_page_scale_factor, | 262 float min_page_scale_factor, |
260 float max_page_scale_factor); | 263 float max_page_scale_factor); |
261 float current_page_scale_factor() const { | 264 float current_page_scale_factor() const { |
262 return page_scale_factor()->Current(IsActiveTree()); | 265 return page_scale_factor()->Current(IsActiveTree()); |
263 } | 266 } |
264 float min_page_scale_factor() const { return min_page_scale_factor_; } | 267 float min_page_scale_factor() const { return min_page_scale_factor_; } |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 bool ClampBrowserControlsShownRatio(); | 534 bool ClampBrowserControlsShownRatio(); |
532 | 535 |
533 LayerTreeHostImpl* layer_tree_host_impl_; | 536 LayerTreeHostImpl* layer_tree_host_impl_; |
534 int source_frame_number_; | 537 int source_frame_number_; |
535 int is_first_frame_after_commit_tracker_; | 538 int is_first_frame_after_commit_tracker_; |
536 LayerImpl* root_layer_for_testing_; | 539 LayerImpl* root_layer_for_testing_; |
537 HeadsUpDisplayLayerImpl* hud_layer_; | 540 HeadsUpDisplayLayerImpl* hud_layer_; |
538 PropertyTrees property_trees_; | 541 PropertyTrees property_trees_; |
539 SkColor background_color_; | 542 SkColor background_color_; |
540 bool has_transparent_background_; | 543 bool has_transparent_background_; |
| 544 bool is_fullscreen_; |
541 | 545 |
542 int last_scrolled_scroll_node_index_; | 546 int last_scrolled_scroll_node_index_; |
543 | 547 |
544 ViewportLayerIds viewport_layer_ids_; | 548 ViewportLayerIds viewport_layer_ids_; |
545 | 549 |
546 LayerSelection selection_; | 550 LayerSelection selection_; |
547 | 551 |
548 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_; | 552 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_; |
549 float min_page_scale_factor_; | 553 float min_page_scale_factor_; |
550 float max_page_scale_factor_; | 554 float max_page_scale_factor_; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 // lifecycle states. See: |LayerTreeLifecycle|. | 638 // lifecycle states. See: |LayerTreeLifecycle|. |
635 LayerTreeLifecycle lifecycle_; | 639 LayerTreeLifecycle lifecycle_; |
636 | 640 |
637 private: | 641 private: |
638 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 642 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
639 }; | 643 }; |
640 | 644 |
641 } // namespace cc | 645 } // namespace cc |
642 | 646 |
643 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 647 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |