| Index: gpu/ipc/client/gpu_fence_impl_shared_event.cc
|
| diff --git a/gpu/ipc/client/gpu_fence_impl_shared_event.cc b/gpu/ipc/client/gpu_fence_impl_shared_event.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b00eda035366b9161318dc822abe4660cc4fed1a
|
| --- /dev/null
|
| +++ b/gpu/ipc/client/gpu_fence_impl_shared_event.cc
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "gpu/ipc/client/gpu_fence_impl_shared_event.h"
|
| +
|
| +namespace gpu {
|
| +
|
| +GpuFenceImplSharedEvent::GpuFenceImplSharedEvent() {}
|
| +
|
| +GpuFenceImplSharedEvent::GpuFenceImplSharedEvent(
|
| + const gfx::SharedEventHandle& handle)
|
| + : shared_event_(handle) {}
|
| +
|
| +GpuFenceImplSharedEvent::~GpuFenceImplSharedEvent() {}
|
| +
|
| +bool GpuFenceImplSharedEvent::IsSignaled() {
|
| + return shared_event_.IsSignaled();
|
| +}
|
| +
|
| +bool GpuFenceImplSharedEvent::Wait(const base::TimeDelta& max_time) {
|
| + return shared_event_.Wait(max_time);
|
| +}
|
| +
|
| +void GpuFenceImplSharedEvent::Reset() {
|
| + return shared_event_.Reset();
|
| +}
|
| +
|
| +gfx::GpuFenceHandle GpuFenceImplSharedEvent::GetHandle() const {
|
| + gfx::GpuFenceHandle handle;
|
| + handle.shared_event_handle = shared_event_.GetHandle();
|
| + return handle;
|
| +}
|
| +
|
| +} // namespace gpu
|
|
|