• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright (c) 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 //
6 
7 // Fence9.h: Defines the rx::Fence9 class which implements rx::FenceImpl.
8 
9 #ifndef LIBGLESV2_RENDERER_FENCE9_H_
10 #define LIBGLESV2_RENDERER_FENCE9_H_
11 
12 #include "libGLESv2/renderer/FenceImpl.h"
13 
14 namespace rx
15 {
16 class Renderer9;
17 
18 class Fence9 : public FenceImpl
19 {
20   public:
21     explicit Fence9(rx::Renderer9 *renderer);
22     virtual ~Fence9();
23 
24     GLboolean isFence();
25     void setFence(GLenum condition);
26     GLboolean testFence();
27     void finishFence();
28     void getFenceiv(GLenum pname, GLint *params);
29 
30   private:
31     DISALLOW_COPY_AND_ASSIGN(Fence9);
32 
33     rx::Renderer9 *mRenderer;
34     IDirect3DQuery9 *mQuery;
35 };
36 
37 }
38 
39 #endif // LIBGLESV2_RENDERER_FENCE9_H_
40