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_stub.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)
     
    4646
    4747#include "qegl_p.h"
     48#include "qeglcontext_p.h"
     49
    4850
    4951QT_BEGIN_NAMESPACE
     
    5557
    5658#define NOEGL noegl(__FUNCTION__);
    57 
    58 EGLDisplay QEglContext::dpy = 0;
    5959
    6060QEglContext::QEglContext()
    6161    : apiType(QEgl::OpenGL)
    6262    , ctx(0)
    63     , cfg(0)
     63    , cfg(QEGL_NO_CONFIG)
    6464    , currentSurface(0)
    6565    , current(false)
     
    8585    NOEGL
    8686    return false;
     87}
     88
     89EGLConfig 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".
     100EGLConfig QEgl::chooseConfig(const QEglProperties* properties, QEgl::PixelFormatMatch match)
     101{
     102    Q_UNUSED(properties)
     103    Q_UNUSED(match)
     104    NOEGL
     105    return QEGL_NO_CONFIG;
    87106}
    88107
     
    158177}
    159178
    160 bool QEglContext::configAttrib(int name, EGLint *value) const
     179bool QEglContext::swapBuffersRegion2NOK(EGLSurface surface, const QRegion *region)
     180{
     181    Q_UNUSED(surface)
     182    Q_UNUSED(region)
     183    NOEGL
     184    return false;
     185}
     186
     187int QEglContext::configAttrib(int name) const
    161188{
    162189    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
     194EGLDisplay QEgl::display()
     195{
     196    NOEGL
     197    return 0;
     198}
     199
     200EGLImageKHR 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
     211EGLBoolean QEgl::eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR img)
     212{
     213    Q_UNUSED(dpy)
     214    Q_UNUSED(img)
     215    NOEGL
     216    return 0;
     217}
     218
     219EGLBoolean 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
     230EGLSurface 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
    185240
    186241// Return the error string associated with a specific code.
    187 QString QEglContext::errorString(EGLint code)
     242QString QEgl::errorString(EGLint code)
    188243{
    189244    Q_UNUSED(code)
     
    193248
    194249// Dump all of the EGL configurations supported by the system.
    195 void QEglContext::dumpAllConfigs()
    196 {
    197     NOEGL
    198 }
    199 
    200 QString QEglContext::extensions()
     250void QEgl::dumpAllConfigs()
     251{
     252    NOEGL
     253}
     254
     255QString QEgl::extensions()
    201256{
    202257    NOEGL
     
    204259}
    205260
    206 bool QEglContext::hasExtension(const char* extensionName)
     261bool QEgl::hasExtension(const char* extensionName)
    207262{
    208263    Q_UNUSED(extensionName)
     
    225280}
    226281
    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();
     282EGLNativeDisplayType QEgl::nativeDisplay()
     283{
     284    NOEGL
     285    return 0;
     286}
     287
     288EGLNativeWindowType QEgl::nativeWindow(QWidget* widget)
     289{
     290    Q_UNUSED(widget)
     291    NOEGL
     292    return (EGLNativeWindowType)0;
     293}
     294
     295EGLNativePixmapType QEgl::nativePixmap(QPixmap*)
     296{
     297    NOEGL
     298    return (EGLNativePixmapType)0;
    248299}
    249300
Note: See TracChangeset for help on using the changeset viewer.