diff options
Diffstat (limited to 'src/3rdparty/angle/src/libANGLE/Query.cpp')
-rw-r--r-- | src/3rdparty/angle/src/libANGLE/Query.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/3rdparty/angle/src/libANGLE/Query.cpp b/src/3rdparty/angle/src/libANGLE/Query.cpp new file mode 100644 index 0000000000..a402b732bf --- /dev/null +++ b/src/3rdparty/angle/src/libANGLE/Query.cpp @@ -0,0 +1,50 @@ +// +// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// + +// Query.cpp: Implements the gl::Query class + +#include "libANGLE/Query.h" +#include "libANGLE/renderer/QueryImpl.h" + +namespace gl +{ +Query::Query(rx::QueryImpl *impl, GLuint id) + : RefCountObject(id), + mQuery(impl) +{ +} + +Query::~Query() +{ + SafeDelete(mQuery); +} + +Error Query::begin() +{ + return mQuery->begin(); +} + +Error Query::end() +{ + return mQuery->end(); +} + +Error Query::getResult(GLuint *params) +{ + return mQuery->getResult(params); +} + +Error Query::isResultAvailable(GLuint *available) +{ + return mQuery->isResultAvailable(available); +} + +GLenum Query::getType() const +{ + return mQuery->getType(); +} + +} |