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

Side by Side Diff: gpu/ipc/client/gpu_fence_impl_shared_event.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_libsync.cc ('k') | gpu/ipc/client/gpu_fence_impl_shared_event.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_SHARED_EVENT_H_
6 #define GPU_IPC_CLIENT_GPU_FENCE_IMPL_SHARED_EVENT_H_
7
8 #include "gpu/gpu_export.h"
9 #include "gpu/ipc/client/gpu_fence_impl.h"
10 #include "ui/gfx/shared_event.h"
11
12 namespace gpu {
13
14 class GPU_EXPORT GpuFenceImplSharedEvent : public GpuFenceImpl {
15 public:
16 GpuFenceImplSharedEvent();
17 explicit GpuFenceImplSharedEvent(const gfx::SharedEventHandle& handle);
18 ~GpuFenceImplSharedEvent() override;
19
20 // Overridden from gfx::GpuFence:
21 bool IsSignaled() override;
22 bool Wait(const base::TimeDelta& max_time) override;
23 void Reset() override;
24 gfx::GpuFenceHandle GetHandle() const override;
25
26 private:
27 gfx::SharedEvent shared_event_;
28
29 DISALLOW_COPY_AND_ASSIGN(GpuFenceImplSharedEvent);
30 };
31
32 } // namespace gpu
33
34 #endif // GPU_IPC_CLIENT_GPU_FENCE_IMPL_SHARED_EVENT_H_
OLDNEW
« no previous file with comments | « gpu/ipc/client/gpu_fence_impl_libsync.cc ('k') | gpu/ipc/client/gpu_fence_impl_shared_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698