#include "ui/compositor/total_animation_throughput_reporter.h"
#include "base/logging.h"
#include "base/observer_list.h"
#include "ui/compositor/compositor.h"
namespace ui {
TotalAnimationThroughputReporter::ScopedThroughputReporterBlocker::
ScopedThroughputReporterBlocker(
base::WeakPtr<TotalAnimationThroughputReporter> reporter)
: … { … }
TotalAnimationThroughputReporter::ScopedThroughputReporterBlocker::
~ScopedThroughputReporterBlocker() { … }
TotalAnimationThroughputReporter::TotalAnimationThroughputReporter(
ui::Compositor* compositor,
ReportOnceCallback once_callback,
bool should_delete)
: … { … }
TotalAnimationThroughputReporter::TotalAnimationThroughputReporter(
ui::Compositor* compositor,
ReportRepeatingCallback repeating_callback)
: … { … }
TotalAnimationThroughputReporter::~TotalAnimationThroughputReporter() { … }
void TotalAnimationThroughputReporter::OnFirstAnimationStarted(
ui::Compositor* compositor) { … }
void TotalAnimationThroughputReporter::OnFirstNonAnimatedFrameStarted(
ui::Compositor* compositor) { … }
void TotalAnimationThroughputReporter::OnCompositingShuttingDown(
ui::Compositor* compositor) { … }
base::WeakPtr<ui::TotalAnimationThroughputReporter>
TotalAnimationThroughputReporter::GetWeakPtr() { … }
std::unique_ptr<
TotalAnimationThroughputReporter::ScopedThroughputReporterBlocker>
TotalAnimationThroughputReporter::NewScopedBlocker() { … }
TotalAnimationThroughputReporter::TotalAnimationThroughputReporter(
ui::Compositor* compositor,
ReportRepeatingCallback repeating_callback,
ReportOnceCallback once_callback,
bool should_delete)
: … { … }
void TotalAnimationThroughputReporter::Report(
const cc::FrameSequenceMetrics::CustomReportData& data) { … }
bool TotalAnimationThroughputReporter::IsBlocked() const { … }
}