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

Unified Diff: ui/gfx/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 | « ui/gfx/ipc/gfx_param_traits_macros.h ('k') | ui/gfx/shared_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/shared_event.h
diff --git a/ui/gfx/shared_event.h b/ui/gfx/shared_event.h
index 1c93a033d41ca4575f5a463eb9ea110f035c2755..d3eda55c4f2a455ee1bc96e42aec9b07afc96f62 100644
--- a/ui/gfx/shared_event.h
+++ b/ui/gfx/shared_event.h
@@ -30,6 +30,10 @@ class GFX_EXPORT SharedEvent {
// responsible for destroying the OS primitive.
static SharedEventHandle CreateForProcess(base::ProcessHandle process);
+ // Return true iff the given handle is valid (i.e. not the distingished
+ // invalid value; NULL for a HANDLE and -1 for a file descriptor)
+ static bool IsHandleValid(const SharedEventHandle& handle);
+
// Duplicates the underlying OS primitive. The caller is responsible for
// destroying the duplicated OS primitive.
static SharedEventHandle DuplicateHandle(const SharedEventHandle& handle);
« no previous file with comments | « ui/gfx/ipc/gfx_param_traits_macros.h ('k') | ui/gfx/shared_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698