2 // Copyright (c) 2012 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.
7 // Query.cpp: Implements the gl::Query class
9 #include "libGLESv2/Query.h"
10 #include "libGLESv2/renderer/QueryImpl.h"
14 Query::Query(rx::QueryImpl *impl, GLuint id)
27 return mQuery->begin();
35 Error Query::getResult(GLuint *params)
37 return mQuery->getResult(params);
40 Error Query::isResultAvailable(GLuint *available)
42 return mQuery->isResultAvailable(available);
45 GLenum Query::getType() const
47 return mQuery->getType();