blob: fc04e04651a42fae751f6fca3776929001db4e00 [file] [log] [blame]
Geoff Langd08f3b32016-09-23 15:56:30 -04001//
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// DisplayNULL.cpp:
7// Implements the class methods for DisplayNULL.
8//
9
10#include "libANGLE/renderer/null/DisplayNULL.h"
11
12#include "common/debug.h"
13
14namespace rx
15{
16
17DisplayNULL::DisplayNULL() : DisplayImpl()
18{
19}
20
21DisplayNULL::~DisplayNULL()
22{
23}
24
25egl::Error DisplayNULL::initialize(egl::Display *display)
26{
27 UNIMPLEMENTED();
28 return egl::Error(EGL_BAD_ACCESS);
29}
30
31void DisplayNULL::terminate()
32{
33 UNIMPLEMENTED();
34}
35
36egl::Error DisplayNULL::makeCurrent(egl::Surface *drawSurface,
37 egl::Surface *readSurface,
38 gl::Context *context)
39{
40 UNIMPLEMENTED();
41 return egl::Error(EGL_BAD_ACCESS);
42}
43
44egl::ConfigSet DisplayNULL::generateConfigs()
45{
46 UNIMPLEMENTED();
47 return egl::ConfigSet();
48}
49
50bool DisplayNULL::testDeviceLost()
51{
52 UNIMPLEMENTED();
53 return bool();
54}
55
56egl::Error DisplayNULL::restoreLostDevice()
57{
58 UNIMPLEMENTED();
59 return egl::Error(EGL_BAD_ACCESS);
60}
61
62bool DisplayNULL::isValidNativeWindow(EGLNativeWindowType window) const
63{
64 UNIMPLEMENTED();
65 return bool();
66}
67
68std::string DisplayNULL::getVendorString() const
69{
70 UNIMPLEMENTED();
71 return std::string();
72}
73
74egl::Error DisplayNULL::getDevice(DeviceImpl **device)
75{
76 UNIMPLEMENTED();
77 return egl::Error(EGL_BAD_ACCESS);
78}
79
80egl::Error DisplayNULL::waitClient() const
81{
82 UNIMPLEMENTED();
83 return egl::Error(EGL_BAD_ACCESS);
84}
85
86egl::Error DisplayNULL::waitNative(EGLint engine,
87 egl::Surface *drawSurface,
88 egl::Surface *readSurface) const
89{
90 UNIMPLEMENTED();
91 return egl::Error(EGL_BAD_ACCESS);
92}
93
94gl::Version DisplayNULL::getMaxSupportedESVersion() const
95{
96 UNIMPLEMENTED();
97 return gl::Version();
98}
99
100SurfaceImpl *DisplayNULL::createWindowSurface(const egl::SurfaceState &state,
101 const egl::Config *configuration,
102 EGLNativeWindowType window,
103 const egl::AttributeMap &attribs)
104{
105 UNIMPLEMENTED();
106 return static_cast<SurfaceImpl *>(0);
107}
108
109SurfaceImpl *DisplayNULL::createPbufferSurface(const egl::SurfaceState &state,
110 const egl::Config *configuration,
111 const egl::AttributeMap &attribs)
112{
113 UNIMPLEMENTED();
114 return static_cast<SurfaceImpl *>(0);
115}
116
117SurfaceImpl *DisplayNULL::createPbufferFromClientBuffer(const egl::SurfaceState &state,
118 const egl::Config *configuration,
Geoff Lang2018c0b2015-12-08 11:48:51 -0500119 EGLenum buftype,
120 EGLClientBuffer buffer,
Geoff Langd08f3b32016-09-23 15:56:30 -0400121 const egl::AttributeMap &attribs)
122{
123 UNIMPLEMENTED();
124 return static_cast<SurfaceImpl *>(0);
125}
126
127SurfaceImpl *DisplayNULL::createPixmapSurface(const egl::SurfaceState &state,
128 const egl::Config *configuration,
129 NativePixmapType nativePixmap,
130 const egl::AttributeMap &attribs)
131{
132 UNIMPLEMENTED();
133 return static_cast<SurfaceImpl *>(0);
134}
135
136ImageImpl *DisplayNULL::createImage(EGLenum target,
137 egl::ImageSibling *buffer,
138 const egl::AttributeMap &attribs)
139{
140 UNIMPLEMENTED();
141 return static_cast<ImageImpl *>(0);
142}
143
144ContextImpl *DisplayNULL::createContext(const gl::ContextState &state)
145{
146 UNIMPLEMENTED();
147 return static_cast<ContextImpl *>(0);
148}
149
150StreamProducerImpl *DisplayNULL::createStreamProducerD3DTextureNV12(
151 egl::Stream::ConsumerType consumerType,
152 const egl::AttributeMap &attribs)
153{
154 UNIMPLEMENTED();
155 return static_cast<StreamProducerImpl *>(0);
156}
157
158void DisplayNULL::generateExtensions(egl::DisplayExtensions *outExtensions) const
159{
160 UNIMPLEMENTED();
161}
162
163void DisplayNULL::generateCaps(egl::Caps *outCaps) const
164{
165 UNIMPLEMENTED();
166}
167
168} // namespace rx