| 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 #ifndef GPU_IPC_CLIENT_GPU_FENCE_IMPL_LIBSYNC_H_ |
| 6 #define GPU_IPC_CLIENT_GPU_FENCE_IMPL_LIBSYNC_H_ |
| 7 |
| 8 #include "base/files/scoped_file.h" |
| 9 #include "gpu/gpu_export.h" |
| 10 #include "gpu/ipc/client/gpu_fence_impl.h" |
| 11 |
| 12 namespace gpu { |
| 13 |
| 14 class GPU_EXPORT GpuFenceImplLibsync : public GpuFenceImpl { |
| 15 public: |
| 16 explicit GpuFenceImplLibsync(const base::FileDescriptor& fd); |
| 17 ~GpuFenceImplLibsync() override; |
| 18 |
| 19 // Overridden from gfx::GpuFence: |
| 20 bool IsSignaled() override; |
| 21 bool Wait(const base::TimeDelta& max_time) override; |
| 22 gfx::GpuFenceHandle GetHandle() const override; |
| 23 |
| 24 private: |
| 25 base::ScopedFD fd_; |
| 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(GpuFenceImplLibsync); |
| 28 }; |
| 29 |
| 30 } // namespace gpu |
| 31 |
| 32 #endif // GPU_IPC_CLIENT_GPU_FENCE_IMPL_LIBSYNC_H_ |
| OLD | NEW |