#include "gpu/command_buffer/service/scheduler_task_runner.h"
#include <utility>
#include <vector>
#include "base/auto_reset.h"
#include "base/check.h"
#include "base/functional/bind.h"
#include "gpu/command_buffer/common/sync_token.h"
#include "gpu/command_buffer/service/scheduler.h"
#include "third_party/abseil-cpp/absl/base/attributes.h"
namespace gpu {
namespace {
ABSL_CONST_INIT thread_local const SchedulerTaskRunner* current_task_runner = …;
}
SchedulerTaskRunner::SchedulerTaskRunner(Scheduler& scheduler,
SequenceId sequence_id)
: … { … }
SchedulerTaskRunner::~SchedulerTaskRunner() = default;
void SchedulerTaskRunner::ShutDown() { … }
bool SchedulerTaskRunner::PostDelayedTask(const base::Location& from_here,
base::OnceClosure task,
base::TimeDelta delay) { … }
bool SchedulerTaskRunner::PostNonNestableDelayedTask(
const base::Location& from_here,
base::OnceClosure task,
base::TimeDelta delay) { … }
bool SchedulerTaskRunner::RunsTasksInCurrentSequence() const { … }
void SchedulerTaskRunner::RunTask(base::OnceClosure task) { … }
}