summaryrefslogtreecommitdiffstats
path: root/src/gui/egl
diff options
context:
space:
mode:
authorXizhi Zhu <xizhi.zhu@gmail.com>2012-01-23 20:13:54 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-31 07:08:20 +0100
commitd1a2b53aaf76f48e195260a415ca406fa1ef01a2 (patch)
tree7f391b24d03f9201ca9fd65767c682c968178839 /src/gui/egl
parent8839a0a001c7017a1acf1d7460c4c19893c74967 (diff)
Remove Symbian specific code from QtGui.
Change-Id: I450a78863462936d0b18e211763f274b59497109 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/gui/egl')
-rw-r--r--src/gui/egl/egl.pri4
-rw-r--r--src/gui/egl/qegl_p.h3
-rw-r--r--src/gui/egl/qegl_stub.cpp298
-rw-r--r--src/gui/egl/qeglproperties_stub.cpp141
4 files changed, 0 insertions, 446 deletions
diff --git a/src/gui/egl/egl.pri b/src/gui/egl/egl.pri
index 59af997477..e4a2bbef75 100644
--- a/src/gui/egl/egl.pri
+++ b/src/gui/egl/egl.pri
@@ -23,8 +23,4 @@ contains(QT_CONFIG, egl): {
}
SOURCES += egl/qegl_qpa.cpp
-} else:symbian: {
- DEFINES += QT_NO_EGL
- SOURCES += egl/qegl_stub.cpp
- SOURCES += egl/qeglproperties_stub.cpp
}
diff --git a/src/gui/egl/qegl_p.h b/src/gui/egl/qegl_p.h
index 2de20ddf8f..3e78b97fcb 100644
--- a/src/gui/egl/qegl_p.h
+++ b/src/gui/egl/qegl_p.h
@@ -113,9 +113,6 @@ QT_BEGIN_NAMESPACE
#define EGLAPIENTRY
#endif
-// Try to get some info to debug the symbian build failues:
-
-
// Declare/define the bits of EGL_KHR_image_base we need:
#if !defined(EGL_KHR_image) && !defined(EGL_KHR_image_base)
typedef void *EGLImageKHR;
diff --git a/src/gui/egl/qegl_stub.cpp b/src/gui/egl/qegl_stub.cpp
deleted file mode 100644
index 2760e28064..0000000000
--- a/src/gui/egl/qegl_stub.cpp
+++ /dev/null
@@ -1,298 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the QtGui module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtGui/qpaintdevice.h>
-#include <QtGui/qpixmap.h>
-#include <QtCore/qdebug.h>
-
-#include "qegl_p.h"
-#include "qeglcontext_p.h"
-
-
-QT_BEGIN_NAMESPACE
-
-static void noegl(const char *fn)
-{
- qWarning() << fn << " called, but Qt configured without EGL" << endl;
-}
-
-#define NOEGL noegl(__FUNCTION__);
-
-QEglContext::QEglContext()
- : apiType(QEgl::OpenGL)
- , ctx(0)
- , cfg(QEGL_NO_CONFIG)
- , currentSurface(0)
- , current(false)
- , ownsContext(true)
- , sharing(false)
-{
- NOEGL
-}
-
-QEglContext::~QEglContext()
-{
- NOEGL
-}
-
-bool QEglContext::isValid() const
-{
- NOEGL
- return false;
-}
-
-bool QEglContext::isCurrent() const
-{
- NOEGL
- return false;
-}
-
-EGLConfig QEgl::defaultConfig(int devType, API api, ConfigOptions options)
-{
- Q_UNUSED(devType)
- Q_UNUSED(api)
- Q_UNUSED(options)
- NOEGL
- return QEGL_NO_CONFIG;
-}
-
-
-// Choose a configuration that matches "properties".
-EGLConfig QEgl::chooseConfig(const QEglProperties* properties, QEgl::PixelFormatMatch match)
-{
- Q_UNUSED(properties)
- Q_UNUSED(match)
- NOEGL
- return QEGL_NO_CONFIG;
-}
-
-bool QEglContext::chooseConfig(const QEglProperties& properties, QEgl::PixelFormatMatch match)
-{
- Q_UNUSED(properties)
- Q_UNUSED(match)
- NOEGL
- return false;
-}
-
-EGLSurface QEglContext::createSurface(QPaintDevice* device, const QEglProperties *properties)
-{
- Q_UNUSED(device)
- Q_UNUSED(properties)
- NOEGL
- return 0;
-}
-
-
-// Create the EGLContext.
-bool QEglContext::createContext(QEglContext *shareContext, const QEglProperties *properties)
-{
- Q_UNUSED(shareContext)
- Q_UNUSED(properties)
- NOEGL
- return false;
-}
-
-// Destroy an EGL surface object. If it was current on this context
-// then call doneCurrent() for it first.
-void QEglContext::destroySurface(EGLSurface surface)
-{
- Q_UNUSED(surface)
- NOEGL
-}
-
-// Destroy the context. Note: this does not destroy the surface.
-void QEglContext::destroyContext()
-{
- NOEGL
-}
-
-bool QEglContext::makeCurrent(EGLSurface surface)
-{
- Q_UNUSED(surface)
- NOEGL
- return false;
-}
-
-bool QEglContext::doneCurrent()
-{
- NOEGL
- return false;
-}
-
-// Act as though doneCurrent() was called, but keep the context
-// and the surface active for the moment. This allows makeCurrent()
-// to skip a call to eglMakeCurrent() if we are using the same
-// surface as the last set of painting operations. We leave the
-// currentContext() pointer as-is for now.
-bool QEglContext::lazyDoneCurrent()
-{
- NOEGL
- return false;
-}
-
-bool QEglContext::swapBuffers(EGLSurface surface)
-{
- Q_UNUSED(surface)
- NOEGL
- return false;
-}
-
-bool QEglContext::swapBuffersRegion2NOK(EGLSurface surface, const QRegion *region)
-{
- Q_UNUSED(surface)
- Q_UNUSED(region)
- NOEGL
- return false;
-}
-
-int QEglContext::configAttrib(int name) const
-{
- Q_UNUSED(name)
- NOEGL
- return 0;
-}
-
-EGLDisplay QEgl::display()
-{
- NOEGL
- return 0;
-}
-
-EGLImageKHR QEgl::eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list)
-{
- Q_UNUSED(dpy)
- Q_UNUSED(ctx)
- Q_UNUSED(target)
- Q_UNUSED(buffer)
- Q_UNUSED(attrib_list)
- NOEGL
- return 0;
-}
-
-EGLBoolean QEgl::eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR img)
-{
- Q_UNUSED(dpy)
- Q_UNUSED(img)
- NOEGL
- return 0;
-}
-
-EGLBoolean QEgl::eglSwapBuffersRegion2NOK(EGLDisplay dpy, EGLSurface surface, EGLint count, const EGLint *rects)
-{
- Q_UNUSED(dpy);
- Q_UNUSED(surface);
- Q_UNUSED(count);
- Q_UNUSED(rects);
- NOEGL
- return 0;
-}
-
-EGLSurface QEgl::createSurface(QPaintDevice *device, EGLConfig cfg, const QEglProperties *properties)
-{
- Q_UNUSED(device)
- Q_UNUSED(cfg)
- Q_UNUSED(properties)
- NOEGL
- return 0;
-}
-
-
-// Return the error string associated with a specific code.
-QString QEgl::errorString(EGLint code)
-{
- Q_UNUSED(code)
- NOEGL
- return QString();
-}
-
-// Dump all of the EGL configurations supported by the system.
-void QEgl::dumpAllConfigs()
-{
- NOEGL
-}
-
-QString QEgl::extensions()
-{
- NOEGL
- return QString();
-}
-
-bool QEgl::hasExtension(const char* extensionName)
-{
- Q_UNUSED(extensionName)
- NOEGL
- return false;
-}
-
-QEglContext *QEglContext::currentContext(QEgl::API api)
-{
- Q_UNUSED(api)
- NOEGL
- return false;
-}
-
-void QEglContext::setCurrentContext(QEgl::API api, QEglContext *context)
-{
- Q_UNUSED(api)
- Q_UNUSED(context)
- NOEGL
-}
-
-EGLNativeDisplayType QEgl::nativeDisplay()
-{
- NOEGL
- return 0;
-}
-
-EGLNativeWindowType QEgl::nativeWindow(QWidget* widget)
-{
- Q_UNUSED(widget)
- NOEGL
- return (EGLNativeWindowType)0;
-}
-
-EGLNativePixmapType QEgl::nativePixmap(QPixmap*)
-{
- NOEGL
- return (EGLNativePixmapType)0;
-}
-
-QT_END_NAMESPACE
diff --git a/src/gui/egl/qeglproperties_stub.cpp b/src/gui/egl/qeglproperties_stub.cpp
deleted file mode 100644
index e054b3d286..0000000000
--- a/src/gui/egl/qeglproperties_stub.cpp
+++ /dev/null
@@ -1,141 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the QtGui module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtCore/qdebug.h>
-#include <QtCore/qstringlist.h>
-
-#include "qeglproperties_p.h"
-#include "qeglcontext_p.h"
-
-QT_BEGIN_NAMESPACE
-
-static void noegl(const char *fn)
-{
- qWarning() << fn << " called, but Qt configured without EGL" << endl;
-}
-
-#define NOEGL noegl(__FUNCTION__);
-
-// Initialize a property block.
-QEglProperties::QEglProperties()
-{
- NOEGL
-}
-
-QEglProperties::QEglProperties(EGLConfig cfg)
-{
- Q_UNUSED(cfg)
- NOEGL
-}
-
-// Fetch the current value associated with a property.
-int QEglProperties::value(int name) const
-{
- Q_UNUSED(name)
- NOEGL
- return 0;
-}
-
-// Set the value associated with a property, replacing an existing
-// value if there is one.
-void QEglProperties::setValue(int name, int value)
-{
- Q_UNUSED(name)
- Q_UNUSED(value)
- NOEGL
-}
-
-// Remove a property value. Returns false if the property is not present.
-bool QEglProperties::removeValue(int name)
-{
- Q_UNUSED(name)
- NOEGL
- return false;
-}
-
-void QEglProperties::setDeviceType(int devType)
-{
- Q_UNUSED(devType)
- NOEGL
-}
-
-
-// Sets the red, green, blue, and alpha sizes based on a pixel format.
-// Normally used to match a configuration request to the screen format.
-void QEglProperties::setPixelFormat(QImage::Format pixelFormat)
-{
- Q_UNUSED(pixelFormat)
- NOEGL
-
-}
-
-void QEglProperties::setRenderableType(QEgl::API api)
-{
- Q_UNUSED(api);
- NOEGL
-}
-
-// Reduce the complexity of a configuration request to ask for less
-// because the previous request did not result in success. Returns
-// true if the complexity was reduced, or false if no further
-// reductions in complexity are possible.
-bool QEglProperties::reduceConfiguration()
-{
- NOEGL
- return false;
-}
-
-// Convert a property list to a string suitable for debug output.
-QString QEglProperties::toString() const
-{
- NOEGL
- return QString();
-}
-
-void QEglProperties::setPaintDeviceFormat(QPaintDevice *dev)
-{
- Q_UNUSED(dev)
- NOEGL
-}
-
-QT_END_NAMESPACE
-
-