1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/angle/src/libGLESv2/Fence.cpp Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,52 @@ 1.4 +#include "precompiled.h" 1.5 +// 1.6 +// Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved. 1.7 +// Use of this source code is governed by a BSD-style license that can be 1.8 +// found in the LICENSE file. 1.9 +// 1.10 + 1.11 +// Fence.cpp: Implements the gl::Fence class, which supports the GL_NV_fence extension. 1.12 + 1.13 +#include "libGLESv2/Fence.h" 1.14 +#include "libGLESv2/renderer/FenceImpl.h" 1.15 +#include "libGLESv2/renderer/Renderer.h" 1.16 + 1.17 +namespace gl 1.18 +{ 1.19 + 1.20 +Fence::Fence(rx::Renderer *renderer) 1.21 +{ 1.22 + mFence = renderer->createFence(); 1.23 +} 1.24 + 1.25 +Fence::~Fence() 1.26 +{ 1.27 + delete mFence; 1.28 +} 1.29 + 1.30 +GLboolean Fence::isFence() 1.31 +{ 1.32 + return mFence->isFence(); 1.33 +} 1.34 + 1.35 +void Fence::setFence(GLenum condition) 1.36 +{ 1.37 + mFence->setFence(condition); 1.38 +} 1.39 + 1.40 +GLboolean Fence::testFence() 1.41 +{ 1.42 + return mFence->testFence(); 1.43 +} 1.44 + 1.45 +void Fence::finishFence() 1.46 +{ 1.47 + mFence->finishFence(); 1.48 +} 1.49 + 1.50 +void Fence::getFenceiv(GLenum pname, GLint *params) 1.51 +{ 1.52 + mFence->getFenceiv(pname, params); 1.53 +} 1.54 + 1.55 +}