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

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

Issue 2707243005: Discard compositor frames from unloaded web content (Closed)
Patch Set: Review comment addressed Created 3 years, 9 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 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1566 metadata.max_page_scale_factor = active_tree_->max_page_scale_factor(); 1566 metadata.max_page_scale_factor = active_tree_->max_page_scale_factor();
1567 metadata.top_controls_height = 1567 metadata.top_controls_height =
1568 browser_controls_offset_manager_->TopControlsHeight(); 1568 browser_controls_offset_manager_->TopControlsHeight();
1569 metadata.top_controls_shown_ratio = 1569 metadata.top_controls_shown_ratio =
1570 browser_controls_offset_manager_->TopControlsShownRatio(); 1570 browser_controls_offset_manager_->TopControlsShownRatio();
1571 metadata.bottom_controls_height = 1571 metadata.bottom_controls_height =
1572 browser_controls_offset_manager_->BottomControlsHeight(); 1572 browser_controls_offset_manager_->BottomControlsHeight();
1573 metadata.bottom_controls_shown_ratio = 1573 metadata.bottom_controls_shown_ratio =
1574 browser_controls_offset_manager_->BottomControlsShownRatio(); 1574 browser_controls_offset_manager_->BottomControlsShownRatio();
1575 metadata.root_background_color = active_tree_->background_color(); 1575 metadata.root_background_color = active_tree_->background_color();
1576 metadata.content_source_id = active_tree_->content_source_id();
1576 1577
1577 active_tree_->GetViewportSelection(&metadata.selection); 1578 active_tree_->GetViewportSelection(&metadata.selection);
1578 1579
1579 if (OuterViewportScrollLayer()) { 1580 if (OuterViewportScrollLayer()) {
1580 metadata.root_overflow_x_hidden = 1581 metadata.root_overflow_x_hidden =
1581 !OuterViewportScrollLayer()->user_scrollable_horizontal(); 1582 !OuterViewportScrollLayer()->user_scrollable_horizontal();
1582 metadata.root_overflow_y_hidden = 1583 metadata.root_overflow_y_hidden =
1583 !OuterViewportScrollLayer()->user_scrollable_vertical(); 1584 !OuterViewportScrollLayer()->user_scrollable_vertical();
1584 } 1585 }
1585 1586
(...skipping 2545 matching lines...) Expand 10 before | Expand all | Expand 10 after
4131 worker_context_visibility_ = 4132 worker_context_visibility_ =
4132 worker_context->CacheController()->ClientBecameVisible(); 4133 worker_context->CacheController()->ClientBecameVisible();
4133 } else { 4134 } else {
4134 worker_context->CacheController()->ClientBecameNotVisible( 4135 worker_context->CacheController()->ClientBecameNotVisible(
4135 std::move(worker_context_visibility_)); 4136 std::move(worker_context_visibility_));
4136 } 4137 }
4137 } 4138 }
4138 } 4139 }
4139 4140
4140 } // namespace cc 4141 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698