OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 #include "cc/trees/layer_tree_impl.h" | 5 #include "cc/trees/layer_tree_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, | 71 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, |
72 scoped_refptr<SyncedBrowserControls> top_controls_shown_ratio, | 72 scoped_refptr<SyncedBrowserControls> top_controls_shown_ratio, |
73 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll) | 73 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll) |
74 : layer_tree_host_impl_(layer_tree_host_impl), | 74 : layer_tree_host_impl_(layer_tree_host_impl), |
75 source_frame_number_(-1), | 75 source_frame_number_(-1), |
76 is_first_frame_after_commit_tracker_(-1), | 76 is_first_frame_after_commit_tracker_(-1), |
77 root_layer_for_testing_(nullptr), | 77 root_layer_for_testing_(nullptr), |
78 hud_layer_(nullptr), | 78 hud_layer_(nullptr), |
79 background_color_(0), | 79 background_color_(0), |
80 has_transparent_background_(false), | 80 has_transparent_background_(false), |
| 81 is_fullscreen_(false), |
81 last_scrolled_scroll_node_index_(ScrollTree::kInvalidNodeId), | 82 last_scrolled_scroll_node_index_(ScrollTree::kInvalidNodeId), |
82 page_scale_factor_(page_scale_factor), | 83 page_scale_factor_(page_scale_factor), |
83 min_page_scale_factor_(0), | 84 min_page_scale_factor_(0), |
84 max_page_scale_factor_(0), | 85 max_page_scale_factor_(0), |
85 device_scale_factor_(1.f), | 86 device_scale_factor_(1.f), |
86 painted_device_scale_factor_(1.f), | 87 painted_device_scale_factor_(1.f), |
87 content_source_id_(0), | 88 content_source_id_(0), |
88 elastic_overscroll_(elastic_overscroll), | 89 elastic_overscroll_(elastic_overscroll), |
89 layers_(new OwnedLayerImplList), | 90 layers_(new OwnedLayerImplList), |
90 viewport_size_invalid_(false), | 91 viewport_size_invalid_(false), |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 target_tree->pending_page_scale_animation_ = | 461 target_tree->pending_page_scale_animation_ = |
461 std::move(pending_page_scale_animation_); | 462 std::move(pending_page_scale_animation_); |
462 | 463 |
463 target_tree->RegisterSelection(selection_); | 464 target_tree->RegisterSelection(selection_); |
464 | 465 |
465 // This should match the property synchronization in | 466 // This should match the property synchronization in |
466 // LayerTreeHost::finishCommitOnImplThread(). | 467 // LayerTreeHost::finishCommitOnImplThread(). |
467 target_tree->set_source_frame_number(source_frame_number()); | 468 target_tree->set_source_frame_number(source_frame_number()); |
468 target_tree->set_background_color(background_color()); | 469 target_tree->set_background_color(background_color()); |
469 target_tree->set_has_transparent_background(has_transparent_background()); | 470 target_tree->set_has_transparent_background(has_transparent_background()); |
| 471 target_tree->set_is_fullscreen(is_fullscreen()); |
470 target_tree->set_have_scroll_event_handlers(have_scroll_event_handlers()); | 472 target_tree->set_have_scroll_event_handlers(have_scroll_event_handlers()); |
471 target_tree->set_event_listener_properties( | 473 target_tree->set_event_listener_properties( |
472 EventListenerClass::kTouchStartOrMove, | 474 EventListenerClass::kTouchStartOrMove, |
473 event_listener_properties(EventListenerClass::kTouchStartOrMove)); | 475 event_listener_properties(EventListenerClass::kTouchStartOrMove)); |
474 target_tree->set_event_listener_properties( | 476 target_tree->set_event_listener_properties( |
475 EventListenerClass::kMouseWheel, | 477 EventListenerClass::kMouseWheel, |
476 event_listener_properties(EventListenerClass::kMouseWheel)); | 478 event_listener_properties(EventListenerClass::kMouseWheel)); |
477 target_tree->set_event_listener_properties( | 479 target_tree->set_event_listener_properties( |
478 EventListenerClass::kTouchEndOrCancel, | 480 EventListenerClass::kTouchEndOrCancel, |
479 event_listener_properties(EventListenerClass::kTouchEndOrCancel)); | 481 event_listener_properties(EventListenerClass::kTouchEndOrCancel)); |
(...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2109 | 2111 |
2110 void LayerTreeImpl::ResetAllChangeTracking() { | 2112 void LayerTreeImpl::ResetAllChangeTracking() { |
2111 layers_that_should_push_properties_.clear(); | 2113 layers_that_should_push_properties_.clear(); |
2112 // Iterate over all layers, including masks. | 2114 // Iterate over all layers, including masks. |
2113 for (auto& layer : *layers_) | 2115 for (auto& layer : *layers_) |
2114 layer->ResetChangeTracking(); | 2116 layer->ResetChangeTracking(); |
2115 property_trees_.ResetAllChangeTracking(); | 2117 property_trees_.ResetAllChangeTracking(); |
2116 } | 2118 } |
2117 | 2119 |
2118 } // namespace cc | 2120 } // namespace cc |
OLD | NEW |