| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "gpu/ipc/client/gpu_fence_impl_shared_event.h" |
| 6 |
| 7 namespace gpu { |
| 8 |
| 9 GpuFenceImplSharedEvent::GpuFenceImplSharedEvent() {} |
| 10 |
| 11 GpuFenceImplSharedEvent::GpuFenceImplSharedEvent( |
| 12 const gfx::SharedEventHandle& handle) |
| 13 : shared_event_(handle) {} |
| 14 |
| 15 GpuFenceImplSharedEvent::~GpuFenceImplSharedEvent() {} |
| 16 |
| 17 bool GpuFenceImplSharedEvent::IsSignaled() { |
| 18 return shared_event_.IsSignaled(); |
| 19 } |
| 20 |
| 21 bool GpuFenceImplSharedEvent::Wait(const base::TimeDelta& max_time) { |
| 22 return shared_event_.Wait(max_time); |
| 23 } |
| 24 |
| 25 void GpuFenceImplSharedEvent::Reset() { |
| 26 return shared_event_.Reset(); |
| 27 } |
| 28 |
| 29 gfx::GpuFenceHandle GpuFenceImplSharedEvent::GetHandle() const { |
| 30 gfx::GpuFenceHandle handle; |
| 31 handle.shared_event_handle = shared_event_.GetHandle(); |
| 32 return handle; |
| 33 } |
| 34 |
| 35 } // namespace gpu |
| OLD | NEW |