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

Unified Diff: ui/gl/gl_fence_libsync.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 | « ui/gl/DEPS ('k') | ui/gl/gl_fence_libsync.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_fence_libsync.h
diff --git a/ui/gl/gl_fence_libsync.h b/ui/gl/gl_fence_libsync.h
new file mode 100644
index 0000000000000000000000000000000000000000..bd24c1e7afd2b3602d4187e2a2ec38ed1d977874
--- /dev/null
+++ b/ui/gl/gl_fence_libsync.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 UI_GL_GL_FENCE_LIBSYNC_H_
+#define UI_GL_GL_FENCE_LIBSYNC_H_
+
+#include "base/file_descriptor_posix.h"
+#include "base/files/scoped_file.h"
+#include "base/macros.h"
+#include "ui/gl/gl_export.h"
+#include "ui/gl/gl_fence.h"
+
+namespace gl {
+
+class GL_EXPORT GLFenceLibsync : public GLFence {
+ public:
+ explicit GLFenceLibsync(base::ScopedFD fd);
+ ~GLFenceLibsync() override;
+
+ // Overridden from GLFence:
+ bool HasCompleted() override;
+ void ClientWait() override;
+ void ServerWait() override;
+
+ private:
+ base::ScopedFD fd_;
+
+ DISALLOW_COPY_AND_ASSIGN(GLFenceLibsync);
+};
+
+} // namespace gl
+
+#endif // UI_GL_GL_FENCE_LIBSYNC_H_
« no previous file with comments | « ui/gl/DEPS ('k') | ui/gl/gl_fence_libsync.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698