#include "cc/test/scheduler_test_common.h"
#include <stddef.h>
#include <string>
#include <utility>
#include "base/memory/ptr_util.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/tick_clock.h"
#include "cc/debug/rendering_stats_instrumentation.h"
namespace cc {
std::unique_ptr<FakeCompositorTimingHistory>
FakeCompositorTimingHistory::Create(
bool using_synchronous_renderer_compositor) { … }
FakeCompositorTimingHistory::FakeCompositorTimingHistory(
bool using_synchronous_renderer_compositor,
std::unique_ptr<RenderingStatsInstrumentation>
rendering_stats_instrumentation)
: … { … }
FakeCompositorTimingHistory::~FakeCompositorTimingHistory() = default;
void FakeCompositorTimingHistory::SetAllEstimatesTo(base::TimeDelta duration) { … }
void FakeCompositorTimingHistory::
SetBeginMainFrameQueueDurationCriticalEstimate(base::TimeDelta duration) { … }
void FakeCompositorTimingHistory::
SetBeginMainFrameQueueDurationNotCriticalEstimate(
base::TimeDelta duration) { … }
void FakeCompositorTimingHistory::
SetBeginMainFrameStartToReadyToCommitDurationEstimate(
base::TimeDelta duration) { … }
void FakeCompositorTimingHistory::SetCommitDurationEstimate(
base::TimeDelta duration) { … }
void FakeCompositorTimingHistory::SetCommitToReadyToActivateDurationEstimate(
base::TimeDelta duration) { … }
void FakeCompositorTimingHistory::SetActivateDurationEstimate(
base::TimeDelta duration) { … }
void FakeCompositorTimingHistory::SetDrawDurationEstimate(
base::TimeDelta duration) { … }
void FakeCompositorTimingHistory::SetBeginMainFrameSentTime(
base::TimeTicks time) { … }
base::TimeDelta
FakeCompositorTimingHistory::BeginMainFrameQueueDurationCriticalEstimate()
const { … }
base::TimeDelta
FakeCompositorTimingHistory::BeginMainFrameQueueDurationNotCriticalEstimate()
const { … }
base::TimeDelta FakeCompositorTimingHistory::
BeginMainFrameStartToReadyToCommitDurationEstimate() const { … }
base::TimeDelta FakeCompositorTimingHistory::CommitDurationEstimate() const { … }
base::TimeDelta
FakeCompositorTimingHistory::CommitToReadyToActivateDurationEstimate() const { … }
base::TimeDelta FakeCompositorTimingHistory::ActivateDurationEstimate() const { … }
base::TimeDelta FakeCompositorTimingHistory::DrawDurationEstimate() const { … }
TestScheduler::TestScheduler(
const base::TickClock* now_src,
SchedulerClient* client,
const SchedulerSettings& scheduler_settings,
int layer_tree_host_id,
base::SingleThreadTaskRunner* task_runner,
std::unique_ptr<CompositorTimingHistory> compositor_timing_history,
CompositorFrameReportingController* compositor_frame_reporting_controller)
: … { … }
base::TimeTicks TestScheduler::Now() const { … }
TestScheduler::~TestScheduler() = default;
}