michael@0: // michael@0: // Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: // michael@0: michael@0: // Fence.h: Defines the gl::Fence class, which supports the GL_NV_fence extension. michael@0: michael@0: #ifndef LIBGLESV2_FENCE_H_ michael@0: #define LIBGLESV2_FENCE_H_ michael@0: michael@0: #include "common/angleutils.h" michael@0: michael@0: namespace rx michael@0: { michael@0: class Renderer; michael@0: class FenceImpl; michael@0: } michael@0: michael@0: namespace gl michael@0: { michael@0: michael@0: class Fence michael@0: { michael@0: public: michael@0: explicit Fence(rx::Renderer *renderer); michael@0: virtual ~Fence(); michael@0: michael@0: GLboolean isFence(); michael@0: void setFence(GLenum condition); michael@0: GLboolean testFence(); michael@0: void finishFence(); michael@0: void getFenceiv(GLenum pname, GLint *params); michael@0: michael@0: private: michael@0: DISALLOW_COPY_AND_ASSIGN(Fence); michael@0: michael@0: rx::FenceImpl *mFence; michael@0: }; michael@0: michael@0: } michael@0: michael@0: #endif // LIBGLESV2_FENCE_H_