#include "gpu/vulkan/semaphore_handle.h"
#include "base/logging.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_POSIX)
#include <unistd.h>
#include "base/posix/eintr_wrapper.h"
#endif
#if BUILDFLAG(IS_FUCHSIA)
#include "base/fuchsia/fuchsia_logging.h"
#endif
#if BUILDFLAG(IS_WIN)
#include <windows.h>
#endif
namespace gpu {
SemaphoreHandle::SemaphoreHandle() = default;
SemaphoreHandle::SemaphoreHandle(VkExternalSemaphoreHandleTypeFlagBits type,
PlatformHandle handle)
: … { … }
SemaphoreHandle::SemaphoreHandle(SemaphoreHandle&&) = default;
SemaphoreHandle::~SemaphoreHandle() = default;
SemaphoreHandle& SemaphoreHandle::operator=(SemaphoreHandle&&) = default;
SemaphoreHandle::SemaphoreHandle(gfx::GpuFenceHandle fence_handle) { … }
void SemaphoreHandle::Init(VkExternalSemaphoreHandleTypeFlagBits type,
PlatformHandle handle) { … }
gfx::GpuFenceHandle SemaphoreHandle::ToGpuFenceHandle() && { … }
SemaphoreHandle SemaphoreHandle::Duplicate() const { … }
}