#include "ui/compositor/compositor_lock.h"
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/task/single_thread_task_runner.h"
namespace ui {
CompositorLockManager::CompositorLockManager(
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: … { … }
CompositorLockManager::~CompositorLockManager() = default;
std::unique_ptr<CompositorLock> CompositorLockManager::GetCompositorLock(
CompositorLockClient* client,
base::TimeDelta timeout,
base::OnceClosure release_callback) { … }
void CompositorLockManager::RemoveCompositorLock(CompositorLock* lock) { … }
void CompositorLockManager::TimeoutLocks() { … }
CompositorLock::CompositorLock(CompositorLockClient* client,
base::WeakPtr<CompositorLockManager> manager,
base::OnceClosure release_callback)
: … { … }
CompositorLock::~CompositorLock() { … }
void CompositorLock::TimeoutLock() { … }
}