Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: cc/trees/layer_tree_host_impl.cc

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Remove physical_backing_resized param and other cr feedback Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_host_impl.h" 5 #include "cc/trees/layer_tree_host_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 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 metadata.max_page_scale_factor = active_tree_->max_page_scale_factor(); 1609 metadata.max_page_scale_factor = active_tree_->max_page_scale_factor();
1610 metadata.top_controls_height = 1610 metadata.top_controls_height =
1611 browser_controls_offset_manager_->TopControlsHeight(); 1611 browser_controls_offset_manager_->TopControlsHeight();
1612 metadata.top_controls_shown_ratio = 1612 metadata.top_controls_shown_ratio =
1613 browser_controls_offset_manager_->TopControlsShownRatio(); 1613 browser_controls_offset_manager_->TopControlsShownRatio();
1614 metadata.bottom_controls_height = 1614 metadata.bottom_controls_height =
1615 browser_controls_offset_manager_->BottomControlsHeight(); 1615 browser_controls_offset_manager_->BottomControlsHeight();
1616 metadata.bottom_controls_shown_ratio = 1616 metadata.bottom_controls_shown_ratio =
1617 browser_controls_offset_manager_->BottomControlsShownRatio(); 1617 browser_controls_offset_manager_->BottomControlsShownRatio();
1618 metadata.root_background_color = active_tree_->background_color(); 1618 metadata.root_background_color = active_tree_->background_color();
1619 metadata.is_fullscreen = active_tree_->is_fullscreen();
1619 metadata.content_source_id = active_tree_->content_source_id(); 1620 metadata.content_source_id = active_tree_->content_source_id();
1620 1621
1621 active_tree_->GetViewportSelection(&metadata.selection); 1622 active_tree_->GetViewportSelection(&metadata.selection);
1622 1623
1623 if (const auto* outer_viewport_scroll_node = OuterViewportScrollNode()) { 1624 if (const auto* outer_viewport_scroll_node = OuterViewportScrollNode()) {
1624 metadata.root_overflow_x_hidden = 1625 metadata.root_overflow_x_hidden =
1625 !outer_viewport_scroll_node->user_scrollable_horizontal; 1626 !outer_viewport_scroll_node->user_scrollable_horizontal;
1626 metadata.root_overflow_y_hidden = 1627 metadata.root_overflow_y_hidden =
1627 !outer_viewport_scroll_node->user_scrollable_vertical; 1628 !outer_viewport_scroll_node->user_scrollable_vertical;
1628 } 1629 }
(...skipping 2680 matching lines...) Expand 10 before | Expand all | Expand 10 after
4309 4310
4310 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { 4311 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) {
4311 if (!element_id) 4312 if (!element_id)
4312 return; 4313 return;
4313 if (ScrollbarAnimationController* animation_controller = 4314 if (ScrollbarAnimationController* animation_controller =
4314 ScrollbarAnimationControllerForElementId(element_id)) 4315 ScrollbarAnimationControllerForElementId(element_id))
4315 animation_controller->DidScrollUpdate(); 4316 animation_controller->DidScrollUpdate();
4316 } 4317 }
4317 4318
4318 } // namespace cc 4319 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698