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_
14 #include "common/angleutils.h"
15 #include "common/RefCountObject.h"
26 class Query : public RefCountObject
29 Query(rx::Renderer *renderer, GLenum type, GLuint id);
36 GLboolean isResultAvailable();
38 GLenum getType() const;
39 bool isStarted() const;
42 DISALLOW_COPY_AND_ASSIGN(Query);
44 rx::QueryImpl *mQuery;
49 #endif // LIBGLESV2_QUERY_H_