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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/angle/src/libGLESv2/renderer/QueryImpl.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     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 +// QueryImpl.h: Defines the abstract rx::QueryImpl class.
    1.11 +
    1.12 +#ifndef LIBGLESV2_RENDERER_QUERYIMPL_H_
    1.13 +#define LIBGLESV2_RENDERER_QUERYIMPL_H_
    1.14 +
    1.15 +#include "common/angleutils.h"
    1.16 +
    1.17 +namespace rx
    1.18 +{
    1.19 +
    1.20 +class QueryImpl
    1.21 +{
    1.22 +  public:
    1.23 +    explicit QueryImpl(GLenum type) : mType(type), mStatus(GL_FALSE), mResult(0) { }
    1.24 +    virtual ~QueryImpl() { }
    1.25 +
    1.26 +    virtual void begin() = 0;
    1.27 +    virtual void end() = 0;
    1.28 +    virtual GLuint getResult() = 0;
    1.29 +    virtual GLboolean isResultAvailable() = 0;
    1.30 +
    1.31 +    GLenum getType() const { return mType; }
    1.32 +
    1.33 +  protected:
    1.34 +    GLuint mResult;
    1.35 +    GLboolean mStatus;
    1.36 +
    1.37 +  private:
    1.38 +    DISALLOW_COPY_AND_ASSIGN(QueryImpl);
    1.39 +
    1.40 +    GLenum mType;
    1.41 +};
    1.42 +
    1.43 +}
    1.44 +
    1.45 +#endif // LIBGLESV2_RENDERER_QUERYIMPL_H_

mercurial