Changeset 846 for trunk/src/gui/egl/qegl_qws.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_qws.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) … … 43 43 #include <QtGui/qpixmap.h> 44 44 #include <QtGui/qwidget.h> 45 45 46 #include "qegl_p.h" 47 #include "qeglcontext_p.h" 46 48 47 49 #if !defined(QT_NO_EGL) … … 53 55 54 56 QT_BEGIN_NAMESPACE 55 56 // Create the surface for a QPixmap, QImage, or QWidget.57 // We don't have QGLScreen to create EGL surfaces for us,58 // so surface creation needs to be done in QtOpenGL or59 // QtOpenVG for Qt/Embedded.60 EGLSurface QEglContext::createSurface(QPaintDevice *device, const QEglProperties *properties)61 {62 Q_UNUSED(device);63 Q_UNUSED(properties);64 return EGL_NO_SURFACE;65 }66 57 67 58 static QScreen *screenForDevice(QPaintDevice *device) … … 102 93 } 103 94 95 EGLNativeDisplayType QEgl::nativeDisplay() 96 { 97 return EGLNativeDisplayType(EGL_DEFAULT_DISPLAY); 98 } 99 100 EGLNativeWindowType QEgl::nativeWindow(QWidget* widget) 101 { 102 return (EGLNativeWindowType)(widget->winId()); // Might work 103 } 104 105 EGLNativePixmapType QEgl::nativePixmap(QPixmap*) 106 { 107 qWarning("QEgl: EGL pixmap surfaces not supported on QWS"); 108 return (EGLNativePixmapType)0; 109 } 110 111 104 112 QT_END_NAMESPACE 105 113
Note:
See TracChangeset
for help on using the changeset viewer.