Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: gpu/ipc/client/gpu_fence_impl_libsync.h

Issue 2384243003: ui: Add libsync GLFence implementation.
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/client/gpu_fence_impl.cc ('k') | gpu/ipc/client/gpu_fence_impl_libsync.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « gpu/ipc/client/gpu_fence_impl.cc ('k') | gpu/ipc/client/gpu_fence_impl_libsync.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698