Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame^] | 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 | // DisplayVk.cpp: |
| 7 | // Implements the class methods for DisplayVk. |
| 8 | // |
| 9 | |
| 10 | #include "libANGLE/renderer/vulkan/DisplayVk.h" |
| 11 | |
| 12 | #include "common/debug.h" |
| 13 | |
| 14 | namespace rx |
| 15 | { |
| 16 | |
| 17 | DisplayVk::DisplayVk() : DisplayImpl() |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | DisplayVk::~DisplayVk() |
| 22 | { |
| 23 | } |
| 24 | |
| 25 | egl::Error DisplayVk::initialize(egl::Display *display) |
| 26 | { |
| 27 | UNIMPLEMENTED(); |
| 28 | return egl::Error(EGL_BAD_ACCESS); |
| 29 | } |
| 30 | |
| 31 | void DisplayVk::terminate() |
| 32 | { |
| 33 | UNIMPLEMENTED(); |
| 34 | } |
| 35 | |
| 36 | egl::Error DisplayVk::makeCurrent(egl::Surface *drawSurface, |
| 37 | egl::Surface *readSurface, |
| 38 | gl::Context *context) |
| 39 | { |
| 40 | UNIMPLEMENTED(); |
| 41 | return egl::Error(EGL_BAD_ACCESS); |
| 42 | } |
| 43 | |
| 44 | egl::ConfigSet DisplayVk::generateConfigs() const |
| 45 | { |
| 46 | UNIMPLEMENTED(); |
| 47 | return egl::ConfigSet(); |
| 48 | } |
| 49 | |
| 50 | bool DisplayVk::isDeviceLost() const |
| 51 | { |
| 52 | UNIMPLEMENTED(); |
| 53 | return bool(); |
| 54 | } |
| 55 | |
| 56 | bool DisplayVk::testDeviceLost() |
| 57 | { |
| 58 | UNIMPLEMENTED(); |
| 59 | return bool(); |
| 60 | } |
| 61 | |
| 62 | egl::Error DisplayVk::restoreLostDevice() |
| 63 | { |
| 64 | UNIMPLEMENTED(); |
| 65 | return egl::Error(EGL_BAD_ACCESS); |
| 66 | } |
| 67 | |
| 68 | bool DisplayVk::isValidNativeWindow(EGLNativeWindowType window) const |
| 69 | { |
| 70 | UNIMPLEMENTED(); |
| 71 | return bool(); |
| 72 | } |
| 73 | |
| 74 | std::string DisplayVk::getVendorString() const |
| 75 | { |
| 76 | UNIMPLEMENTED(); |
| 77 | return std::string(); |
| 78 | } |
| 79 | |
| 80 | egl::Error DisplayVk::getDevice(DeviceImpl **device) |
| 81 | { |
| 82 | UNIMPLEMENTED(); |
| 83 | return egl::Error(EGL_BAD_ACCESS); |
| 84 | } |
| 85 | |
| 86 | egl::Error DisplayVk::waitClient() const |
| 87 | { |
| 88 | UNIMPLEMENTED(); |
| 89 | return egl::Error(EGL_BAD_ACCESS); |
| 90 | } |
| 91 | |
| 92 | egl::Error DisplayVk::waitNative(EGLint engine, |
| 93 | egl::Surface *drawSurface, |
| 94 | egl::Surface *readSurface) const |
| 95 | { |
| 96 | UNIMPLEMENTED(); |
| 97 | return egl::Error(EGL_BAD_ACCESS); |
| 98 | } |
| 99 | |
| 100 | SurfaceImpl *DisplayVk::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 | |
| 109 | SurfaceImpl *DisplayVk::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 | |
| 117 | SurfaceImpl *DisplayVk::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 | |
| 126 | SurfaceImpl *DisplayVk::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 | |
| 135 | ImageImpl *DisplayVk::createImage(EGLenum target, |
| 136 | egl::ImageSibling *buffer, |
| 137 | const egl::AttributeMap &attribs) |
| 138 | { |
| 139 | UNIMPLEMENTED(); |
| 140 | return static_cast<ImageImpl *>(0); |
| 141 | } |
| 142 | |
| 143 | ContextImpl *DisplayVk::createContext(const gl::ContextState &state) |
| 144 | { |
| 145 | UNIMPLEMENTED(); |
| 146 | return static_cast<ContextImpl *>(0); |
| 147 | } |
| 148 | |
| 149 | StreamProducerImpl *DisplayVk::createStreamProducerD3DTextureNV12( |
| 150 | egl::Stream::ConsumerType consumerType, |
| 151 | const egl::AttributeMap &attribs) |
| 152 | { |
| 153 | UNIMPLEMENTED(); |
| 154 | return static_cast<StreamProducerImpl *>(0); |
| 155 | } |
| 156 | |
| 157 | void DisplayVk::generateExtensions(egl::DisplayExtensions *outExtensions) const |
| 158 | { |
| 159 | UNIMPLEMENTED(); |
| 160 | } |
| 161 | |
| 162 | void DisplayVk::generateCaps(egl::Caps *outCaps) const |
| 163 | { |
| 164 | UNIMPLEMENTED(); |
| 165 | } |
| 166 | |
| 167 | } // namespace rx |