Add state for the new fence sync objects in ES3.

TRAC #23446

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Authored-by: Jamie Madill
diff --git a/src/libGLESv2/ResourceManager.h b/src/libGLESv2/ResourceManager.h
index 1d898d8..e16a7a4 100644
--- a/src/libGLESv2/ResourceManager.h
+++ b/src/libGLESv2/ResourceManager.h
@@ -37,6 +37,7 @@
 class Texture;
 class Renderbuffer;
 class Sampler;
+class FenceSync;
 
 class ResourceManager
 {
@@ -53,6 +54,7 @@
     GLuint createTexture();
     GLuint createRenderbuffer();
     GLuint createSampler();
+    GLuint createFenceSync();
 
     void deleteBuffer(GLuint buffer);
     void deleteShader(GLuint shader);
@@ -60,6 +62,7 @@
     void deleteTexture(GLuint texture);
     void deleteRenderbuffer(GLuint renderbuffer);
     void deleteSampler(GLuint sampler);
+    void deleteFenceSync(GLuint fenceSync);
 
     Buffer *getBuffer(GLuint handle);
     Shader *getShader(GLuint handle);
@@ -67,6 +70,7 @@
     Texture *getTexture(GLuint handle);
     Renderbuffer *getRenderbuffer(GLuint handle);
     Sampler *getSampler(GLuint handle);
+    FenceSync *getFenceSync(GLuint handle);
     
     void setRenderbuffer(GLuint handle, Renderbuffer *renderbuffer);
 
@@ -112,6 +116,9 @@
 
     HASH_MAP<GLuint, Sampler*> mSamplerMap;
     HandleAllocator mSamplerHandleAllocator;
+
+    HASH_MAP<GLuint, FenceSync*> mFenceSyncMap;
+    HandleAllocator mFenceSyncHandleAllocator;
 };
 
 }