1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/angle/src/libGLESv2/renderer/Fence11.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 1.4 +// 1.5 +// Copyright (c) 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 +// Fence11.h: Defines the rx::Fence11 class which implements rx::FenceImpl. 1.11 + 1.12 +#ifndef LIBGLESV2_RENDERER_Fence11_H_ 1.13 +#define LIBGLESV2_RENDERER_Fence11_H_ 1.14 + 1.15 +#include "libGLESv2/renderer/FenceImpl.h" 1.16 + 1.17 +namespace rx 1.18 +{ 1.19 +class Renderer11; 1.20 + 1.21 +class Fence11 : public FenceImpl 1.22 +{ 1.23 + public: 1.24 + explicit Fence11(rx::Renderer11 *renderer); 1.25 + virtual ~Fence11(); 1.26 + 1.27 + GLboolean isFence(); 1.28 + void setFence(GLenum condition); 1.29 + GLboolean testFence(); 1.30 + void finishFence(); 1.31 + void getFenceiv(GLenum pname, GLint *params); 1.32 + 1.33 + private: 1.34 + DISALLOW_COPY_AND_ASSIGN(Fence11); 1.35 + 1.36 + rx::Renderer11 *mRenderer; 1.37 + ID3D11Query *mQuery; 1.38 +}; 1.39 + 1.40 +} 1.41 + 1.42 +#endif // LIBGLESV2_RENDERER_FENCE11_H_