Use SemaphoreID in place of GLuint handle

Bug: angleproject:3804
Change-Id: Iabaae60ed7cbbe423bf768c506099d26cf0dedcf
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1768978
Commit-Queue: Jiacheng Lu <lujc@google.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
diff --git a/src/libANGLE/validationES2.cpp b/src/libANGLE/validationES2.cpp
index e0fea17..7e712d7 100644
--- a/src/libANGLE/validationES2.cpp
+++ b/src/libANGLE/validationES2.cpp
@@ -3400,7 +3400,7 @@
     return true;
 }
 
-bool ValidateDeleteSemaphoresEXT(Context *context, GLsizei n, const GLuint *semaphores)
+bool ValidateDeleteSemaphoresEXT(Context *context, GLsizei n, const SemaphoreID *semaphores)
 {
     if (!context->getExtensions().semaphore)
     {
@@ -3411,7 +3411,7 @@
     return ValidateGenOrDelete(context, n);
 }
 
-bool ValidateGenSemaphoresEXT(Context *context, GLsizei n, GLuint *semaphores)
+bool ValidateGenSemaphoresEXT(Context *context, GLsizei n, SemaphoreID *semaphores)
 {
     if (!context->getExtensions().semaphore)
     {
@@ -3423,7 +3423,7 @@
 }
 
 bool ValidateGetSemaphoreParameterui64vEXT(Context *context,
-                                           GLuint semaphore,
+                                           SemaphoreID semaphore,
                                            GLenum pname,
                                            GLuint64 *params)
 {
@@ -3437,7 +3437,7 @@
     return false;
 }
 
-bool ValidateIsSemaphoreEXT(Context *context, GLuint semaphore)
+bool ValidateIsSemaphoreEXT(Context *context, SemaphoreID semaphore)
 {
     if (!context->getExtensions().semaphore)
     {
@@ -3449,7 +3449,7 @@
 }
 
 bool ValidateSemaphoreParameterui64vEXT(Context *context,
-                                        GLuint semaphore,
+                                        SemaphoreID semaphore,
                                         GLenum pname,
                                         const GLuint64 *params)
 {
@@ -3464,7 +3464,7 @@
 }
 
 bool ValidateSignalSemaphoreEXT(Context *context,
-                                GLuint semaphore,
+                                SemaphoreID semaphore,
                                 GLuint numBufferBarriers,
                                 const BufferID *buffers,
                                 GLuint numTextureBarriers,
@@ -3490,7 +3490,7 @@
 }
 
 bool ValidateWaitSemaphoreEXT(Context *context,
-                              GLuint semaphore,
+                              SemaphoreID semaphore,
                               GLuint numBufferBarriers,
                               const BufferID *buffers,
                               GLuint numTextureBarriers,
@@ -3516,7 +3516,7 @@
 }
 
 bool ValidateImportSemaphoreFdEXT(Context *context,
-                                  GLuint semaphore,
+                                  SemaphoreID semaphore,
                                   HandleType handleType,
                                   GLint fd)
 {