#include "ui/gfx/gpu_fence.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/time/time.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
#include <sync/sync.h>
#endif
namespace gfx {
GpuFence::GpuFence(GpuFenceHandle fence_handle)
: … { … }
GpuFence::~GpuFence() = default;
GpuFence::GpuFence(GpuFence&& other) = default;
GpuFence& GpuFence::operator=(GpuFence&& other) = default;
const GpuFenceHandle& GpuFence::GetGpuFenceHandle() const { … }
ClientGpuFence GpuFence::AsClientGpuFence() { … }
GpuFence* GpuFence::FromClientGpuFence(ClientGpuFence gpu_fence) { … }
void GpuFence::Wait() { … }
GpuFence::FenceStatus GpuFence::GetStatusChangeTime(int fd,
base::TimeTicks* time) { … }
base::TimeTicks GpuFence::GetMaxTimestamp() const { … }
}