Rename gl::FenceSync to gl::Sync.

The spec refers to Sync objects, FenceSyncs being a subtype. The
motivation for this fix is to clear up the FenceSync_ entry point for
auto-generation.

BUG=angleproject:1309

Change-Id: I94c440476d701628575e7a3eea68b6dd110f41c3
Reviewed-on: https://chromium-review.googlesource.com/636516
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
diff --git a/src/libANGLE/ResourceManager.cpp b/src/libANGLE/ResourceManager.cpp
index 6f5bd50..f970602 100644
--- a/src/libANGLE/ResourceManager.cpp
+++ b/src/libANGLE/ResourceManager.cpp
@@ -102,7 +102,7 @@
 template class TypedResourceManager<Texture, HandleAllocator, TextureManager>;
 template class TypedResourceManager<Renderbuffer, HandleAllocator, RenderbufferManager>;
 template class TypedResourceManager<Sampler, HandleAllocator, SamplerManager>;
-template class TypedResourceManager<FenceSync, HandleAllocator, FenceSyncManager>;
+template class TypedResourceManager<Sync, HandleAllocator, SyncManager>;
 template class TypedResourceManager<Framebuffer, HandleAllocator, FramebufferManager>;
 
 // BufferManager Implementation.
@@ -308,24 +308,24 @@
     return mObjectMap.contains(sampler);
 }
 
-// FenceSyncManager Implementation.
+// SyncManager Implementation.
 
 // static
-void FenceSyncManager::DeleteObject(const Context *context, FenceSync *fenceSync)
+void SyncManager::DeleteObject(const Context *context, Sync *sync)
 {
-    fenceSync->release(context);
+    sync->release(context);
 }
 
-GLuint FenceSyncManager::createFenceSync(rx::GLImplFactory *factory)
+GLuint SyncManager::createSync(rx::GLImplFactory *factory)
 {
-    GLuint handle        = mHandleAllocator.allocate();
-    FenceSync *fenceSync = new FenceSync(factory->createFenceSync(), handle);
-    fenceSync->addRef();
-    mObjectMap.assign(handle, fenceSync);
+    GLuint handle = mHandleAllocator.allocate();
+    Sync *sync    = new Sync(factory->createSync(), handle);
+    sync->addRef();
+    mObjectMap.assign(handle, sync);
     return handle;
 }
 
-FenceSync *FenceSyncManager::getFenceSync(GLuint handle) const
+Sync *SyncManager::getSync(GLuint handle) const
 {
     return mObjectMap.query(handle);
 }