1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/angle/src/libGLESv2/Fence.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +// 1.5 +// Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved. 1.6 +// Use of this source code is governed by a BSD-style license that can be 1.7 +// found in the LICENSE file. 1.8 +// 1.9 + 1.10 +// Fence.h: Defines the gl::Fence class, which supports the GL_NV_fence extension. 1.11 + 1.12 +#ifndef LIBGLESV2_FENCE_H_ 1.13 +#define LIBGLESV2_FENCE_H_ 1.14 + 1.15 +#include "common/angleutils.h" 1.16 + 1.17 +namespace rx 1.18 +{ 1.19 +class Renderer; 1.20 +class FenceImpl; 1.21 +} 1.22 + 1.23 +namespace gl 1.24 +{ 1.25 + 1.26 +class Fence 1.27 +{ 1.28 + public: 1.29 + explicit Fence(rx::Renderer *renderer); 1.30 + virtual ~Fence(); 1.31 + 1.32 + GLboolean isFence(); 1.33 + void setFence(GLenum condition); 1.34 + GLboolean testFence(); 1.35 + void finishFence(); 1.36 + void getFenceiv(GLenum pname, GLint *params); 1.37 + 1.38 + private: 1.39 + DISALLOW_COPY_AND_ASSIGN(Fence); 1.40 + 1.41 + rx::FenceImpl *mFence; 1.42 +}; 1.43 + 1.44 +} 1.45 + 1.46 +#endif // LIBGLESV2_FENCE_H_