Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 //
2 // Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
7 // Fence.h: Defines the gl::Fence class, which supports the GL_NV_fence extension.
9 #ifndef LIBGLESV2_FENCE_H_
10 #define LIBGLESV2_FENCE_H_
12 #include "common/angleutils.h"
14 namespace rx
15 {
16 class Renderer;
17 class FenceImpl;
18 }
20 namespace gl
21 {
23 class Fence
24 {
25 public:
26 explicit Fence(rx::Renderer *renderer);
27 virtual ~Fence();
29 GLboolean isFence();
30 void setFence(GLenum condition);
31 GLboolean testFence();
32 void finishFence();
33 void getFenceiv(GLenum pname, GLint *params);
35 private:
36 DISALLOW_COPY_AND_ASSIGN(Fence);
38 rx::FenceImpl *mFence;
39 };
41 }
43 #endif // LIBGLESV2_FENCE_H_