#include "components/performance_manager/decorators/frame_visibility_decorator.h"
#include "components/performance_manager/graph/frame_node_impl.h"
#include "components/performance_manager/graph/page_node_impl.h"
#include "components/performance_manager/public/features.h"
namespace performance_manager {
namespace {
bool IsBeingMirrored(const PageNode* page_node) { … }
FrameNode::Visibility GetFrameNodeVisibility(FrameNodeImpl* frame_node,
bool is_page_user_visible) { … }
void UpdateFrameTreeVisibility(FrameNodeImpl* frame_node,
bool is_page_user_visible) { … }
}
FrameVisibilityDecorator::FrameVisibilityDecorator() = default;
FrameVisibilityDecorator::~FrameVisibilityDecorator() = default;
void FrameVisibilityDecorator::OnPassedToGraph(Graph* graph) { … }
void FrameVisibilityDecorator::OnTakenFromGraph(Graph* graph) { … }
void FrameVisibilityDecorator::OnPageNodeAdded(const PageNode* page_node) { … }
void FrameVisibilityDecorator::OnBeforePageNodeRemoved(
const PageNode* page_node) { … }
void FrameVisibilityDecorator::OnIsVisibleChanged(const PageNode* page_node) { … }
void FrameVisibilityDecorator::OnIsBeingMirroredChanged(
const PageNode* page_node) { … }
void FrameVisibilityDecorator::OnFrameNodeInitializing(
const FrameNode* frame_node) { … }
void FrameVisibilityDecorator::OnCurrentFrameChanged(
const FrameNode* previous_frame_node,
const FrameNode* current_frame_node) { … }
void FrameVisibilityDecorator::OnViewportIntersectionStateChanged(
const FrameNode* frame_node) { … }
void FrameVisibilityDecorator::OnPageUserVisibilityChanged(
const PageNode* page_node,
bool page_is_user_visible) { … }
void FrameVisibilityDecorator::OnFramePropertyChanged(
const FrameNode* frame_node) { … }
bool FrameVisibilityDecorator::IsPageUserVisible(const PageNode* page_node) { … }
}