#include "cc/metrics/frame_sequence_tracker_collection.h"
#include <utility>
#include <vector>
#include "base/containers/contains.h"
#include "base/memory/ptr_util.h"
#include "cc/metrics/compositor_frame_reporting_controller.h"
#include "cc/metrics/frame_sequence_tracker.h"
namespace cc {
namespace {
ThreadType;
bool IsScrollType(FrameSequenceTrackerType type) { … }
}
FrameSequenceTrackerCollection::FrameSequenceTrackerCollection(
bool is_single_threaded,
CompositorFrameReportingController* compositor_frame_reporting_controller)
: … { … }
FrameSequenceTrackerCollection::~FrameSequenceTrackerCollection() { … }
FrameSequenceTracker* FrameSequenceTrackerCollection::StartSequenceInternal(
FrameSequenceTrackerType type,
FrameInfo::SmoothEffectDrivingThread scrolling_thread) { … }
FrameSequenceTracker* FrameSequenceTrackerCollection::StartSequence(
FrameSequenceTrackerType type) { … }
FrameSequenceTracker* FrameSequenceTrackerCollection::StartScrollSequence(
FrameSequenceTrackerType type,
FrameInfo::SmoothEffectDrivingThread scrolling_thread) { … }
void FrameSequenceTrackerCollection::CleanUp() { … }
void FrameSequenceTrackerCollection::StopSequence(
FrameSequenceTrackerType type) { … }
void FrameSequenceTrackerCollection::StartCustomSequence(int sequence_id) { … }
void FrameSequenceTrackerCollection::StopCustomSequence(int sequence_id) { … }
void FrameSequenceTrackerCollection::ClearAll() { … }
void FrameSequenceTrackerCollection::NotifyBeginImplFrame(
const viz::BeginFrameArgs& args) { … }
void FrameSequenceTrackerCollection::NotifyPauseFrameProduction() { … }
void FrameSequenceTrackerCollection::NotifyFrameEnd(
const viz::BeginFrameArgs& args,
const viz::BeginFrameArgs& main_args) { … }
void FrameSequenceTrackerCollection::DestroyTrackers() { … }
void FrameSequenceTrackerCollection::RecreateTrackers(
const viz::BeginFrameArgs& args) { … }
ActiveFrameSequenceTrackers
FrameSequenceTrackerCollection::FrameSequenceTrackerActiveTypes() const { … }
FrameSequenceTracker*
FrameSequenceTrackerCollection::GetRemovalTrackerForTesting(
FrameSequenceTrackerType type) { … }
void FrameSequenceTrackerCollection::AddCustomTrackerResult(
int custom_sequence_id,
const FrameSequenceMetrics::CustomReportData& data) { … }
void FrameSequenceTrackerCollection::AddSortedFrame(
const viz::BeginFrameArgs& args,
const FrameInfo& frame_info) { … }
}