blob: bdf6d4a14506a420f4fdf2549c5732ce666a3800 [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,
119 EGLClientBuffer shareHandle,
120 const egl::AttributeMap &attribs)
121{
122 UNIMPLEMENTED();
123 return static_cast<SurfaceImpl *>(0);
124}
125
126SurfaceImpl *DisplayNULL::createPixmapSurface(const egl::SurfaceState &state,
127 const egl::Config *configuration,
128 NativePixmapType nativePixmap,
129 const egl::AttributeMap &attribs)
130{
131 UNIMPLEMENTED();
132 return static_cast<SurfaceImpl *>(0);
133}
134
135ImageImpl *DisplayNULL::createImage(EGLenum target,
136 egl::ImageSibling *buffer,
137 const egl::AttributeMap &attribs)
138{
139 UNIMPLEMENTED();
140 return static_cast<ImageImpl *>(0);
141}
142
143ContextImpl *DisplayNULL::createContext(const gl::ContextState &state)
144{
145 UNIMPLEMENTED();
146 return static_cast<ContextImpl *>(0);
147}
148
149StreamProducerImpl *DisplayNULL::createStreamProducerD3DTextureNV12(
150 egl::Stream::ConsumerType consumerType,
151 const egl::AttributeMap &attribs)
152{
153 UNIMPLEMENTED();
154 return static_cast<StreamProducerImpl *>(0);
155}
156
157void DisplayNULL::generateExtensions(egl::DisplayExtensions *outExtensions) const
158{
159 UNIMPLEMENTED();
160}
161
162void DisplayNULL::generateCaps(egl::Caps *outCaps) const
163{
164 UNIMPLEMENTED();
165}
166
167} // namespace rx