summaryrefslogtreecommitdiffstats
path: root/mkspecs/devices
diff options
context:
space:
mode:
authorDonald Carr <donald.carr@nokia.com>2012-04-10 17:20:31 +0000
committerQt by Nokia <qt-info@nokia.com>2012-04-11 09:22:23 +0200
commit42f3bf772bab75d639b9211d66a0e085538526e2 (patch)
tree3a8620b60d41425ebe9206bafb5fb7f464157693 /mkspecs/devices
parent127c431e25208e98304a1e9dc1140fdfba078be8 (diff)
Extend eglhooks to include hasCapability
Add BufferQueueingOpenGL to Raspberry PI's numerous capabilities Change-Id: I1197c28a0c82df3ae2f6d5360791010e17373555 Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com> Reviewed-by: Donald Carr <donald.carr@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'mkspecs/devices')
-rw-r--r--mkspecs/devices/linux-arm-amlogic-8726M-g++/qeglfs_hooks_8726m.cpp5
-rw-r--r--mkspecs/devices/linux-rasp-pi-g++/qeglfs_hooks.cpp13
2 files changed, 18 insertions, 0 deletions
diff --git a/mkspecs/devices/linux-arm-amlogic-8726M-g++/qeglfs_hooks_8726m.cpp b/mkspecs/devices/linux-arm-amlogic-8726M-g++/qeglfs_hooks_8726m.cpp
index 06cb424e4f..40fb2a336b 100644
--- a/mkspecs/devices/linux-arm-amlogic-8726M-g++/qeglfs_hooks_8726m.cpp
+++ b/mkspecs/devices/linux-arm-amlogic-8726M-g++/qeglfs_hooks_8726m.cpp
@@ -92,4 +92,9 @@ void QEglFSHooks::destroyNativeWindow(EGLNativeWindowType window)
delete window;
}
+bool QEglFSHooks::hasCapability(QPlatformIntegration::Capability cap) const
+{
+ return false;
+}
+
QEglFSHooks platform_hooks;
diff --git a/mkspecs/devices/linux-rasp-pi-g++/qeglfs_hooks.cpp b/mkspecs/devices/linux-rasp-pi-g++/qeglfs_hooks.cpp
index 2cbd297a90..f17af55947 100644
--- a/mkspecs/devices/linux-rasp-pi-g++/qeglfs_hooks.cpp
+++ b/mkspecs/devices/linux-rasp-pi-g++/qeglfs_hooks.cpp
@@ -140,4 +140,17 @@ void QEglFSHooks::destroyNativeWindow(EGLNativeWindowType window)
delete eglWindow;
}
+bool QEglFSHooks::hasCapability(QPlatformIntegration::Capability cap) const
+{
+ switch (cap) {
+ case QPlatformIntegration::ThreadedPixmaps:
+ case QPlatformIntegration::OpenGL:
+ case QPlatformIntegration::ThreadedOpenGL:
+ case QPlatformIntegration::BufferQueueingOpenGL:
+ return true;
+ default:
+ return false;
+ }
+}
+
QEglFSHooks platform_hooks;