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

Unified Diff: gpu/ipc/client/gpu_fence_impl_shared_event.h

Issue 2384243003: ui: Add libsync GLFence implementation.
Patch Set: rebase Created 4 years, 2 months 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/client/gpu_fence_impl_shared_event.h
diff --git a/gpu/ipc/client/gpu_fence_impl_shared_event.h b/gpu/ipc/client/gpu_fence_impl_shared_event.h
new file mode 100644
index 0000000000000000000000000000000000000000..dd2abefabbe8d13b55a6b4184c3d31aef0be91a7
--- /dev/null
+++ b/gpu/ipc/client/gpu_fence_impl_shared_event.h
@@ -0,0 +1,34 @@
+// 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.
+
+#ifndef GPU_IPC_CLIENT_GPU_FENCE_IMPL_SHARED_EVENT_H_
+#define GPU_IPC_CLIENT_GPU_FENCE_IMPL_SHARED_EVENT_H_
+
+#include "gpu/gpu_export.h"
+#include "gpu/ipc/client/gpu_fence_impl.h"
+#include "ui/gfx/shared_event.h"
+
+namespace gpu {
+
+class GPU_EXPORT GpuFenceImplSharedEvent : public GpuFenceImpl {
+ public:
+ GpuFenceImplSharedEvent();
+ explicit GpuFenceImplSharedEvent(const gfx::SharedEventHandle& handle);
+ ~GpuFenceImplSharedEvent() override;
+
+ // Overridden from gfx::GpuFence:
+ bool IsSignaled() override;
+ bool Wait(const base::TimeDelta& max_time) override;
+ void Reset() override;
+ gfx::GpuFenceHandle GetHandle() const override;
+
+ private:
+ gfx::SharedEvent shared_event_;
+
+ DISALLOW_COPY_AND_ASSIGN(GpuFenceImplSharedEvent);
+};
+
+} // namespace gpu
+
+#endif // GPU_IPC_CLIENT_GPU_FENCE_IMPL_SHARED_EVENT_H_
« 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