#include "cc/metrics/average_lag_tracking_manager.h"
#include <algorithm>
#include <memory>
#include "components/viz/common/frame_timing_details.h"
#include "components/viz/common/quads/compositor_frame_metadata.h"
namespace cc {
namespace {
void AddEventInfoFromEventMetricsList(
const EventMetrics::List& events_metrics,
std::vector<AverageLagTracker::EventInfo>* event_infos) { … }
}
AverageLagTrackingManager::AverageLagTrackingManager() = default;
AverageLagTrackingManager::~AverageLagTrackingManager() { … }
void AverageLagTrackingManager::CollectScrollEventsFromFrame(
uint32_t frame_token,
const EventMetricsSet& events_metrics) { … }
void AverageLagTrackingManager::DidPresentCompositorFrame(
uint32_t frame_token,
const viz::FrameTimingDetails& frame_details) { … }
void AverageLagTrackingManager::Clear() { … }
}