xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/null/DeviceNULL.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
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.h:
7 //    Defines the class interface for DeviceNULL, implementing DeviceImpl.
8 //
9 
10 #ifndef LIBANGLE_RENDERER_NULL_DEVICENULL_H_
11 #define LIBANGLE_RENDERER_NULL_DEVICENULL_H_
12 
13 #include "libANGLE/renderer/DeviceImpl.h"
14 
15 namespace rx
16 {
17 
18 class DeviceNULL : public DeviceImpl
19 {
20   public:
21     DeviceNULL();
22     ~DeviceNULL() override;
23 
24     egl::Error initialize() override;
25     egl::Error getAttribute(const egl::Display *display,
26                             EGLint attribute,
27                             void **outValue) override;
28     void generateExtensions(egl::DeviceExtensions *outExtensions) const override;
29 };
30 
31 }  // namespace rx
32 
33 #endif  // LIBANGLE_RENDERER_NULL_DEVICENULL_H_
34