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

Unified Diff: ui/gl/gl_fence.h

Issue 2418613004: ui: Add EGL_ANDROID_native_fence_sync support.
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/gl_bindings_autogen_egl.cc ('k') | ui/gl/gl_fence.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_fence.h
diff --git a/ui/gl/gl_fence.h b/ui/gl/gl_fence.h
index 0f055273bf5d39557e38a74b59745c00b27a2b61..df87657b0b15df24c167a8881156bd3a6b2b643c 100644
--- a/ui/gl/gl_fence.h
+++ b/ui/gl/gl_fence.h
@@ -9,6 +9,10 @@
#include "base/memory/ref_counted.h"
#include "ui/gl/gl_export.h"
+namespace gfx {
+struct GpuFenceHandle;
+}
+
namespace gl {
class GL_EXPORT GLFence : public base::RefCounted<GLFence> {
@@ -17,6 +21,8 @@ class GL_EXPORT GLFence : public base::RefCounted<GLFence> {
static bool IsSupported();
static scoped_refptr<GLFence> Create();
+ static scoped_refptr<GLFence> CreateFromGpuFenceHandle(
+ const gfx::GpuFenceHandle& handle);
virtual bool HasCompleted() = 0;
virtual void ClientWait() = 0;
« no previous file with comments | « ui/gl/gl_bindings_autogen_egl.cc ('k') | ui/gl/gl_fence.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698