Commit 7372c707 authored by Patrick Monette's avatar Patrick Monette Committed by Commit Bot

Performance Manager: Treat occluded pages as not visible

Bug: 668690
Change-Id: Iac624c067336b2f2479a6541a5d2fc7566f4dd5e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1603065Reviewed-by: default avatarFrançois Doray <fdoray@chromium.org>
Commit-Queue: Patrick Monette <pmonette@chromium.org>
Cr-Commit-Position: refs/heads/master@{#659137}
parent f6fc7ec4
......@@ -297,8 +297,7 @@ void PerformanceManagerTabHelper::OnMainFrameNavigation(int64_t navigation_id) {
void PerformanceManagerTabHelper::UpdatePageNodeVisibility(
content::Visibility visibility) {
// TODO(fdoray): An OCCLUDED tab should not be considered visible.
const bool is_visible = visibility != content::Visibility::HIDDEN;
const bool is_visible = visibility == content::Visibility::VISIBLE;
PostToGraph(FROM_HERE, &PageNodeImpl::SetIsVisible, page_node_.get(),
is_visible);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment