Changeset 846 for trunk/src/gui/egl/qegl_stub.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/egl/qegl_stub.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 46 46 47 47 #include "qegl_p.h" 48 #include "qeglcontext_p.h" 49 48 50 49 51 QT_BEGIN_NAMESPACE … … 55 57 56 58 #define NOEGL noegl(__FUNCTION__); 57 58 EGLDisplay QEglContext::dpy = 0;59 59 60 60 QEglContext::QEglContext() 61 61 : apiType(QEgl::OpenGL) 62 62 , ctx(0) 63 , cfg( 0)63 , cfg(QEGL_NO_CONFIG) 64 64 , currentSurface(0) 65 65 , current(false) … … 85 85 NOEGL 86 86 return false; 87 } 88 89 EGLConfig QEgl::defaultConfig(int devType, API api, ConfigOptions options) 90 { 91 Q_UNUSED(devType) 92 Q_UNUSED(api) 93 Q_UNUSED(options) 94 NOEGL 95 return QEGL_NO_CONFIG; 96 } 97 98 99 // Choose a configuration that matches "properties". 100 EGLConfig QEgl::chooseConfig(const QEglProperties* properties, QEgl::PixelFormatMatch match) 101 { 102 Q_UNUSED(properties) 103 Q_UNUSED(match) 104 NOEGL 105 return QEGL_NO_CONFIG; 87 106 } 88 107 … … 158 177 } 159 178 160 bool QEglContext::configAttrib(int name, EGLint *value) const 179 bool QEglContext::swapBuffersRegion2NOK(EGLSurface surface, const QRegion *region) 180 { 181 Q_UNUSED(surface) 182 Q_UNUSED(region) 183 NOEGL 184 return false; 185 } 186 187 int QEglContext::configAttrib(int name) const 161 188 { 162 189 Q_UNUSED(name) 163 Q_UNUSED(value) 164 NOEGL 165 return false; 166 } 167 168 void QEglContext::clearError() 169 { 170 NOEGL 171 return; 172 } 173 174 EGLint QEglContext::error() 175 { 176 NOEGL 177 return 0; 178 } 179 180 EGLDisplay QEglContext::display() 181 { 182 NOEGL 183 return 0; 184 } 190 NOEGL 191 return 0; 192 } 193 194 EGLDisplay QEgl::display() 195 { 196 NOEGL 197 return 0; 198 } 199 200 EGLImageKHR QEgl::eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list) 201 { 202 Q_UNUSED(dpy) 203 Q_UNUSED(ctx) 204 Q_UNUSED(target) 205 Q_UNUSED(buffer) 206 Q_UNUSED(attrib_list) 207 NOEGL 208 return 0; 209 } 210 211 EGLBoolean QEgl::eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR img) 212 { 213 Q_UNUSED(dpy) 214 Q_UNUSED(img) 215 NOEGL 216 return 0; 217 } 218 219 EGLBoolean QEgl::eglSwapBuffersRegion2NOK(EGLDisplay dpy, EGLSurface surface, EGLint count, const EGLint *rects) 220 { 221 Q_UNUSED(dpy); 222 Q_UNUSED(surface); 223 Q_UNUSED(count); 224 Q_UNUSED(rects); 225 NOEGL 226 return 0; 227 } 228 229 #ifndef Q_WS_X11 230 EGLSurface QEgl::createSurface(QPaintDevice *device, EGLConfig cfg, const QEglProperties *properties) 231 { 232 Q_UNUSED(device) 233 Q_UNUSED(cfg) 234 Q_UNUSED(properties) 235 NOEGL 236 return 0; 237 } 238 #endif 239 185 240 186 241 // Return the error string associated with a specific code. 187 QString QEgl Context::errorString(EGLint code)242 QString QEgl::errorString(EGLint code) 188 243 { 189 244 Q_UNUSED(code) … … 193 248 194 249 // Dump all of the EGL configurations supported by the system. 195 void QEgl Context::dumpAllConfigs()196 { 197 NOEGL 198 } 199 200 QString QEgl Context::extensions()250 void QEgl::dumpAllConfigs() 251 { 252 NOEGL 253 } 254 255 QString QEgl::extensions() 201 256 { 202 257 NOEGL … … 204 259 } 205 260 206 bool QEgl Context::hasExtension(const char* extensionName)261 bool QEgl::hasExtension(const char* extensionName) 207 262 { 208 263 Q_UNUSED(extensionName) … … 225 280 } 226 281 227 EGLNativeDisplayType QEglContext::nativeDisplay() 228 { 229 NOEGL 230 return 0; 231 } 232 233 void QEglContext::waitClient() 234 { 235 NOEGL 236 } 237 238 void QEglContext::waitNative() 239 { 240 NOEGL 241 } 242 243 QEglProperties QEglContext::configProperties(EGLConfig cfg) const 244 { 245 Q_UNUSED(cfg) 246 NOEGL 247 return QEglProperties(); 282 EGLNativeDisplayType QEgl::nativeDisplay() 283 { 284 NOEGL 285 return 0; 286 } 287 288 EGLNativeWindowType QEgl::nativeWindow(QWidget* widget) 289 { 290 Q_UNUSED(widget) 291 NOEGL 292 return (EGLNativeWindowType)0; 293 } 294 295 EGLNativePixmapType QEgl::nativePixmap(QPixmap*) 296 { 297 NOEGL 298 return (EGLNativePixmapType)0; 248 299 } 249 300
Note:
See TracChangeset
for help on using the changeset viewer.