Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / angle / src / libGLESv2 / renderer / d3d / d3d9 / Fence9.h
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::FenceNV9 class which implements rx::FenceNVImpl.
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 FenceNV9 : public FenceNVImpl
19 {
20   public:
21     explicit FenceNV9(Renderer9 *renderer);
22     virtual ~FenceNV9();
23
24     gl::Error set();
25     gl::Error test(bool flushCommandBuffer, GLboolean *outFinished);
26     gl::Error finishFence(GLboolean *outFinished);
27
28   private:
29     DISALLOW_COPY_AND_ASSIGN(FenceNV9);
30
31     Renderer9 *mRenderer;
32     IDirect3DQuery9 *mQuery;
33 };
34
35 }
36
37 #endif // LIBGLESV2_RENDERER_FENCE9_H_