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: // Query11.h: Defines the rx::Query11 class which implements rx::QueryImpl. michael@0: michael@0: #ifndef LIBGLESV2_RENDERER_QUERY11_H_ michael@0: #define LIBGLESV2_RENDERER_QUERY11_H_ michael@0: michael@0: #include "libGLESv2/renderer/QueryImpl.h" michael@0: michael@0: namespace rx michael@0: { michael@0: class Renderer11; michael@0: michael@0: class Query11 : public QueryImpl michael@0: { michael@0: public: michael@0: Query11(rx::Renderer11 *renderer, GLenum type); michael@0: virtual ~Query11(); 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(Query11); michael@0: michael@0: GLboolean testQuery(); michael@0: michael@0: rx::Renderer11 *mRenderer; michael@0: ID3D11Query *mQuery; michael@0: }; michael@0: michael@0: } michael@0: michael@0: #endif // LIBGLESV2_RENDERER_QUERY11_H_