1 //
2 // Copyright 2016 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 // QueryNULL.cpp:
7 // Implements the class methods for QueryNULL.
8 //
9
10 #include "libANGLE/renderer/null/QueryNULL.h"
11
12 #include "common/debug.h"
13
14 namespace rx
15 {
16
QueryNULL(gl::QueryType type)17 QueryNULL::QueryNULL(gl::QueryType type) : QueryImpl(type) {}
18
~QueryNULL()19 QueryNULL::~QueryNULL() {}
20
begin(const gl::Context * context)21 angle::Result QueryNULL::begin(const gl::Context *context)
22 {
23 return angle::Result::Continue;
24 }
25
end(const gl::Context * context)26 angle::Result QueryNULL::end(const gl::Context *context)
27 {
28 return angle::Result::Continue;
29 }
30
queryCounter(const gl::Context * context)31 angle::Result QueryNULL::queryCounter(const gl::Context *context)
32 {
33 return angle::Result::Continue;
34 }
35
getResult(const gl::Context * context,GLint * params)36 angle::Result QueryNULL::getResult(const gl::Context *context, GLint *params)
37 {
38 *params = 0;
39 return angle::Result::Continue;
40 }
41
getResult(const gl::Context * context,GLuint * params)42 angle::Result QueryNULL::getResult(const gl::Context *context, GLuint *params)
43 {
44 *params = 0;
45 return angle::Result::Continue;
46 }
47
getResult(const gl::Context * context,GLint64 * params)48 angle::Result QueryNULL::getResult(const gl::Context *context, GLint64 *params)
49 {
50 *params = 0;
51 return angle::Result::Continue;
52 }
53
getResult(const gl::Context * context,GLuint64 * params)54 angle::Result QueryNULL::getResult(const gl::Context *context, GLuint64 *params)
55 {
56 *params = 0;
57 return angle::Result::Continue;
58 }
59
isResultAvailable(const gl::Context * context,bool * available)60 angle::Result QueryNULL::isResultAvailable(const gl::Context *context, bool *available)
61 {
62 *available = true;
63 return angle::Result::Continue;
64 }
65
66 } // namespace rx
67