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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/angle/src/libGLESv2/renderer/Query9.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     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 +// Query9.h: Defines the rx::Query9 class which implements rx::QueryImpl.
    1.11 +
    1.12 +#ifndef LIBGLESV2_RENDERER_QUERY9_H_
    1.13 +#define LIBGLESV2_RENDERER_QUERY9_H_
    1.14 +
    1.15 +#include "libGLESv2/renderer/QueryImpl.h"
    1.16 +
    1.17 +namespace rx
    1.18 +{
    1.19 +class Renderer9;
    1.20 +
    1.21 +class Query9 : public QueryImpl
    1.22 +{
    1.23 +  public:
    1.24 +    Query9(rx::Renderer9 *renderer, GLenum type);
    1.25 +    virtual ~Query9();
    1.26 +
    1.27 +    void begin();
    1.28 +    void end();
    1.29 +    GLuint getResult();
    1.30 +    GLboolean isResultAvailable();
    1.31 +
    1.32 +  private:
    1.33 +    DISALLOW_COPY_AND_ASSIGN(Query9);
    1.34 +
    1.35 +    GLboolean testQuery();
    1.36 +
    1.37 +    rx::Renderer9 *mRenderer;
    1.38 +    IDirect3DQuery9 *mQuery;
    1.39 +};
    1.40 +
    1.41 +}
    1.42 +
    1.43 +#endif // LIBGLESV2_RENDERER_QUERY9_H_

mercurial