Edit

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

Branch :

  • Show log

    Commit

  • Author : Geoff Lang
    Date : 2018-01-08 17:22:55
    Hash : 540a1dfe
    Message : Refactor DeviceImpl creation. Add an initialize function to match other impl objects and simplify the creation of DeviceImpls. BUG=742034 Change-Id: I569c8252d5d23c8af98835f6c08e7a3b640fc3f3 Reviewed-on: https://chromium-review.googlesource.com/854626 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Yuly Novikov <ynovikov@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>

  • src/libANGLE/renderer/null/DeviceNULL.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.
    //
    // DeviceNULL.cpp:
    //    Implements the class methods for DeviceNULL.
    //
    
    #include "libANGLE/renderer/null/DeviceNULL.h"
    
    #include "common/debug.h"
    
    namespace rx
    {
    
    DeviceNULL::DeviceNULL() : DeviceImpl()
    {
    }
    
    DeviceNULL::~DeviceNULL()
    {
    }
    
    egl::Error DeviceNULL::initialize()
    {
        return egl::NoError();
    }
    
    egl::Error DeviceNULL::getDevice(void **outValue)
    {
        UNIMPLEMENTED();
        return egl::EglBadAccess();
    }
    
    EGLint DeviceNULL::getType()
    {
        return 0;
    }
    
    void DeviceNULL::generateExtensions(egl::DeviceExtensions *outExtensions) const
    {
    }
    
    }  // namespace rx