#include "cc/trees/task_runner_provider.h"
#include "base/task/single_thread_task_runner.h"
namespace cc {
base::SingleThreadTaskRunner* TaskRunnerProvider::MainThreadTaskRunner() const { … }
bool TaskRunnerProvider::HasImplThread() const { … }
base::SingleThreadTaskRunner* TaskRunnerProvider::ImplThreadTaskRunner() const { … }
bool TaskRunnerProvider::IsMainThread() const { … }
bool TaskRunnerProvider::IsImplThread() const { … }
#if DCHECK_IS_ON()
void TaskRunnerProvider::SetCurrentThreadIsImplThread(bool is_impl_thread) { … }
#endif
bool TaskRunnerProvider::IsMainThreadBlocked() const { … }
#if DCHECK_IS_ON()
void TaskRunnerProvider::SetMainThreadBlocked(bool is_main_thread_blocked) { … }
#endif
TaskRunnerProvider::TaskRunnerProvider(
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner)
#if !DCHECK_IS_ON()
: … { … }
TaskRunnerProvider::~TaskRunnerProvider() { … }
}