1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/angle/src/libGLESv2/Query.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,49 @@ 1.4 +// 1.5 +// Copyright (c) 2012 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 +// Query.h: Defines the gl::Query class 1.11 + 1.12 +#ifndef LIBGLESV2_QUERY_H_ 1.13 +#define LIBGLESV2_QUERY_H_ 1.14 + 1.15 +#define GL_APICALL 1.16 +#include <GLES2/gl2.h> 1.17 + 1.18 +#include "common/angleutils.h" 1.19 +#include "common/RefCountObject.h" 1.20 + 1.21 +namespace rx 1.22 +{ 1.23 +class Renderer; 1.24 +class QueryImpl; 1.25 +} 1.26 + 1.27 +namespace gl 1.28 +{ 1.29 + 1.30 +class Query : public RefCountObject 1.31 +{ 1.32 + public: 1.33 + Query(rx::Renderer *renderer, GLenum type, GLuint id); 1.34 + virtual ~Query(); 1.35 + 1.36 + void begin(); 1.37 + void end(); 1.38 + 1.39 + GLuint getResult(); 1.40 + GLboolean isResultAvailable(); 1.41 + 1.42 + GLenum getType() const; 1.43 + 1.44 + private: 1.45 + DISALLOW_COPY_AND_ASSIGN(Query); 1.46 + 1.47 + rx::QueryImpl *mQuery; 1.48 +}; 1.49 + 1.50 +} 1.51 + 1.52 +#endif // LIBGLESV2_QUERY_H_