diff options
Diffstat (limited to 'src/3rdparty/angle/src/libGLESv2/Fence.h')
-rw-r--r-- | src/3rdparty/angle/src/libGLESv2/Fence.h | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/src/3rdparty/angle/src/libGLESv2/Fence.h b/src/3rdparty/angle/src/libGLESv2/Fence.h deleted file mode 100644 index fd565e96a6..0000000000 --- a/src/3rdparty/angle/src/libGLESv2/Fence.h +++ /dev/null @@ -1,75 +0,0 @@ -// -// Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -// - -// Fence.h: Defines the gl::FenceNV and gl::FenceSync classes, which support the GL_NV_fence -// extension and GLES3 sync objects. - -#ifndef LIBGLESV2_FENCE_H_ -#define LIBGLESV2_FENCE_H_ - -#include "libGLESv2/Error.h" - -#include "common/angleutils.h" -#include "common/RefCountObject.h" - -namespace rx -{ -class FenceNVImpl; -class FenceSyncImpl; -} - -namespace gl -{ - -class FenceNV -{ - public: - explicit FenceNV(rx::FenceNVImpl *impl); - virtual ~FenceNV(); - - GLboolean isFence() const; - Error setFence(GLenum condition); - Error testFence(GLboolean *outResult); - Error finishFence(); - - GLboolean getStatus() const { return mStatus; } - GLuint getCondition() const { return mCondition; } - - private: - DISALLOW_COPY_AND_ASSIGN(FenceNV); - - rx::FenceNVImpl *mFence; - - bool mIsSet; - - GLboolean mStatus; - GLenum mCondition; -}; - -class FenceSync : public RefCountObject -{ - public: - explicit FenceSync(rx::FenceSyncImpl *impl, GLuint id); - virtual ~FenceSync(); - - Error set(GLenum condition); - Error clientWait(GLbitfield flags, GLuint64 timeout, GLenum *outResult); - Error serverWait(GLbitfield flags, GLuint64 timeout); - Error getStatus(GLint *outResult) const; - - GLuint getCondition() const { return mCondition; } - - private: - DISALLOW_COPY_AND_ASSIGN(FenceSync); - - rx::FenceSyncImpl *mFence; - - GLenum mCondition; -}; - -} - -#endif // LIBGLESV2_FENCE_H_ |