Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/egl/qegl_qws.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4343#include <QtGui/qpixmap.h>
    4444#include <QtGui/qwidget.h>
     45
    4546#include "qegl_p.h"
     47#include "qeglcontext_p.h"
    4648
    4749#if !defined(QT_NO_EGL)
     
    5355
    5456QT_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 or
    59 // 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 }
    6657
    6758static QScreen *screenForDevice(QPaintDevice *device)
     
    10293}
    10394
     95EGLNativeDisplayType QEgl::nativeDisplay()
     96{
     97    return  EGLNativeDisplayType(EGL_DEFAULT_DISPLAY);
     98}
     99
     100EGLNativeWindowType QEgl::nativeWindow(QWidget* widget)
     101{
     102    return (EGLNativeWindowType)(widget->winId()); // Might work
     103}
     104
     105EGLNativePixmapType QEgl::nativePixmap(QPixmap*)
     106{
     107    qWarning("QEgl: EGL pixmap surfaces not supported on QWS");
     108    return (EGLNativePixmapType)0;
     109}
     110
     111
    104112QT_END_NAMESPACE
    105113
Note: See TracChangeset for help on using the changeset viewer.