michael@0: // michael@0: // Copyright (c) 2013 The ANGLE Project Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: // michael@0: michael@0: // Query9.h: Defines the rx::Query9 class which implements rx::QueryImpl. michael@0: michael@0: #ifndef LIBGLESV2_RENDERER_QUERY9_H_ michael@0: #define LIBGLESV2_RENDERER_QUERY9_H_ michael@0: michael@0: #include "libGLESv2/renderer/QueryImpl.h" michael@0: michael@0: namespace rx michael@0: { michael@0: class Renderer9; michael@0: michael@0: class Query9 : public QueryImpl michael@0: { michael@0: public: michael@0: Query9(rx::Renderer9 *renderer, GLenum type); michael@0: virtual ~Query9(); michael@0: michael@0: void begin(); michael@0: void end(); michael@0: GLuint getResult(); michael@0: GLboolean isResultAvailable(); michael@0: michael@0: private: michael@0: DISALLOW_COPY_AND_ASSIGN(Query9); michael@0: michael@0: GLboolean testQuery(); michael@0: michael@0: rx::Renderer9 *mRenderer; michael@0: IDirect3DQuery9 *mQuery; michael@0: }; michael@0: michael@0: } michael@0: michael@0: #endif // LIBGLESV2_RENDERER_QUERY9_H_