Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / angle / src / libGLESv2 / renderer / d3d / d3d9 / Query9.h
1 //
2 // Copyright (c) 2013 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.
5 //
6
7 // Query9.h: Defines the rx::Query9 class which implements rx::QueryImpl.
8
9 #ifndef LIBGLESV2_RENDERER_QUERY9_H_
10 #define LIBGLESV2_RENDERER_QUERY9_H_
11
12 #include "libGLESv2/renderer/QueryImpl.h"
13
14 namespace rx
15 {
16 class Renderer9;
17
18 class Query9 : public QueryImpl
19 {
20   public:
21     Query9(rx::Renderer9 *renderer, GLenum type);
22     virtual ~Query9();
23
24     virtual gl::Error begin();
25     virtual gl::Error end();
26     virtual gl::Error getResult(GLuint *params);
27     virtual gl::Error isResultAvailable(GLuint *available);
28
29   private:
30     DISALLOW_COPY_AND_ASSIGN(Query9);
31
32     gl::Error testQuery();
33
34     GLuint mResult;
35     bool mQueryFinished;
36
37     rx::Renderer9 *mRenderer;
38     IDirect3DQuery9 *mQuery;
39 };
40
41 }
42
43 #endif // LIBGLESV2_RENDERER_QUERY9_H_