• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // DeviceNULL.cpp:
7 //    Implements the class methods for DeviceNULL.
8 //
9 
10 #include "libANGLE/renderer/null/DeviceNULL.h"
11 
12 #include "common/debug.h"
13 
14 namespace rx
15 {
16 
DeviceNULL()17 DeviceNULL::DeviceNULL() : DeviceImpl() {}
18 
~DeviceNULL()19 DeviceNULL::~DeviceNULL() {}
20 
initialize()21 egl::Error DeviceNULL::initialize()
22 {
23     return egl::NoError();
24 }
25 
getAttribute(const egl::Display * display,EGLint attribute,void ** outValue)26 egl::Error DeviceNULL::getAttribute(const egl::Display *display, EGLint attribute, void **outValue)
27 {
28     UNIMPLEMENTED();
29     return egl::EglBadAccess();
30 }
31 
getType()32 EGLint DeviceNULL::getType()
33 {
34     return 0;
35 }
36 
generateExtensions(egl::DeviceExtensions * outExtensions) const37 void DeviceNULL::generateExtensions(egl::DeviceExtensions *outExtensions) const {}
38 
39 }  // namespace rx
40