Edit

kc3-lang/angle/src/libANGLE/renderer/null/QueryNULL.cpp

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2018-07-25 10:53:56
    Hash : 5188a274
    Message : Pass Context to Query Impl methods. The Context needed for the error refactor and Vulkan implementation. Bug: angleproject:2738 Change-Id: Id816b61ebf342c953a320ab29b6386e356dc64e8 Reviewed-on: https://chromium-review.googlesource.com/1150092 Reviewed-by: Yuly Novikov <ynovikov@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>

  • src/libANGLE/renderer/null/QueryNULL.cpp
  • //
    // Copyright 2016 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.
    //
    // QueryNULL.cpp:
    //    Implements the class methods for QueryNULL.
    //
    
    #include "libANGLE/renderer/null/QueryNULL.h"
    
    #include "common/debug.h"
    
    namespace rx
    {
    
    QueryNULL::QueryNULL(gl::QueryType type) : QueryImpl(type)
    {
    }
    
    QueryNULL::~QueryNULL()
    {
    }
    
    gl::Error QueryNULL::begin(const gl::Context *context)
    {
        return gl::NoError();
    }
    
    gl::Error QueryNULL::end(const gl::Context *context)
    {
        return gl::NoError();
    }
    
    gl::Error QueryNULL::queryCounter(const gl::Context *context)
    {
        return gl::NoError();
    }
    
    gl::Error QueryNULL::getResult(const gl::Context *context, GLint *params)
    {
        *params = 0;
        return gl::NoError();
    }
    
    gl::Error QueryNULL::getResult(const gl::Context *context, GLuint *params)
    {
        *params = 0;
        return gl::NoError();
    }
    
    gl::Error QueryNULL::getResult(const gl::Context *context, GLint64 *params)
    {
        *params = 0;
        return gl::NoError();
    }
    
    gl::Error QueryNULL::getResult(const gl::Context *context, GLuint64 *params)
    {
        *params = 0;
        return gl::NoError();
    }
    
    gl::Error QueryNULL::isResultAvailable(const gl::Context *context, bool *available)
    {
        *available = true;
        return gl::NoError();
    }
    
    }  // namespace rx