shannon.woods@transgaming.com | dbbe605 | 2013-02-28 23:03:25 +0000 | [diff] [blame] | 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" |
shannon.woods@transgaming.com | 486d9e9 | 2013-02-28 23:15:41 +0000 | [diff] [blame] | 13 | |
shannon.woods@transgaming.com | dbbe605 | 2013-02-28 23:03:25 +0000 | [diff] [blame] | 14 | namespace rx |
| 15 | { |
shannon.woods@transgaming.com | 486d9e9 | 2013-02-28 23:15:41 +0000 | [diff] [blame] | 16 | class Renderer9; |
shannon.woods@transgaming.com | dbbe605 | 2013-02-28 23:03:25 +0000 | [diff] [blame] | 17 | |
| 18 | class Fence9 : public FenceImpl |
| 19 | { |
| 20 | public: |
| 21 | explicit Fence9(rx::Renderer9 *renderer); |
| 22 | virtual ~Fence9(); |
| 23 | |
Jamie Madill | 0975236 | 2013-07-26 11:54:57 -0400 | [diff] [blame] | 24 | bool isSet() const; |
| 25 | void set(); |
| 26 | bool test(bool flushCommandBuffer); |
Jamie Madill | cd055f8 | 2013-07-26 11:55:15 -0400 | [diff] [blame] | 27 | bool hasError() const; |
shannon.woods@transgaming.com | dbbe605 | 2013-02-28 23:03:25 +0000 | [diff] [blame] | 28 | |
| 29 | private: |
| 30 | DISALLOW_COPY_AND_ASSIGN(Fence9); |
| 31 | |
| 32 | rx::Renderer9 *mRenderer; |
| 33 | IDirect3DQuery9 *mQuery; |
| 34 | }; |
| 35 | |
| 36 | } |
| 37 | |
| 38 | #endif // LIBGLESV2_RENDERER_FENCE9_H_ |