2 // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
7 // Query.h: Defines the gl::Query class
9 #ifndef LIBGLESV2_QUERY_H_
10 #define LIBGLESV2_QUERY_H_
12 #include "libGLESv2/Error.h"
13 #include "common/angleutils.h"
14 #include "common/RefCountObject.h"
26 class Query : public RefCountObject
29 Query(rx::QueryImpl *impl, GLuint id);
35 Error getResult(GLuint *params);
36 Error isResultAvailable(GLuint *available);
38 GLenum getType() const;
41 DISALLOW_COPY_AND_ASSIGN(Query);
43 rx::QueryImpl *mQuery;
48 #endif // LIBGLESV2_QUERY_H_