#include "cc/raster/single_thread_task_graph_runner.h"
#include <stdint.h>
#include <memory>
#include <string>
#include <utility>
#include "base/ranges/algorithm.h"
#include "base/threading/simple_thread.h"
#include "base/trace_event/base_tracing.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
namespace cc {
SingleThreadTaskGraphRunner::SingleThreadTaskGraphRunner()
: … { … }
SingleThreadTaskGraphRunner::~SingleThreadTaskGraphRunner() = default;
void SingleThreadTaskGraphRunner::Start(
const std::string& thread_name,
const base::SimpleThread::Options& thread_options) { … }
void SingleThreadTaskGraphRunner::Shutdown() { … }
NamespaceToken SingleThreadTaskGraphRunner::GenerateNamespaceToken() { … }
void SingleThreadTaskGraphRunner::ScheduleTasks(NamespaceToken token,
TaskGraph* graph) { … }
void SingleThreadTaskGraphRunner::WaitForTasksToFinishRunning(
NamespaceToken token) { … }
void SingleThreadTaskGraphRunner::CollectCompletedTasks(
NamespaceToken token,
Task::Vector* completed_tasks) { … }
void SingleThreadTaskGraphRunner::Run() { … }
bool SingleThreadTaskGraphRunner::RunTaskWithLockAcquired() { … }
}