gfx/angle/src/libGLESv2/renderer/FenceImpl.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/angle/src/libGLESv2/renderer/FenceImpl.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,45 @@
     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 +// FenceImpl.h: Defines the rx::FenceImpl class.
    1.11 +
    1.12 +#ifndef LIBGLESV2_RENDERER_FENCEIMPL_H_
    1.13 +#define LIBGLESV2_RENDERER_FENCEIMPL_H_
    1.14 +
    1.15 +#include "common/angleutils.h"
    1.16 +
    1.17 +namespace rx
    1.18 +{
    1.19 +
    1.20 +class FenceImpl
    1.21 +{
    1.22 +  public:
    1.23 +    FenceImpl() : mStatus(GL_FALSE), mCondition(GL_NONE) { };
    1.24 +    virtual ~FenceImpl() { };
    1.25 +
    1.26 +    virtual GLboolean isFence() = 0;
    1.27 +    virtual void setFence(GLenum condition) = 0;
    1.28 +    virtual GLboolean testFence() = 0;
    1.29 +    virtual void finishFence() = 0;
    1.30 +    virtual void getFenceiv(GLenum pname, GLint *params) = 0;
    1.31 +
    1.32 +  protected:
    1.33 +    void setStatus(GLboolean status) { mStatus = status; }
    1.34 +    GLboolean getStatus() const { return mStatus; }
    1.35 +
    1.36 +    void setCondition(GLuint condition) { mCondition = condition; }
    1.37 +    GLuint getCondition() const { return mCondition; }
    1.38 +
    1.39 +  private:
    1.40 +    DISALLOW_COPY_AND_ASSIGN(FenceImpl);
    1.41 +
    1.42 +    GLboolean mStatus;
    1.43 +    GLenum mCondition;
    1.44 +};
    1.45 +
    1.46 +}
    1.47 +
    1.48 +#endif // LIBGLESV2_RENDERER_FENCEIMPL_H_

mercurial