[backend] Fix detection of old version encoding hw adaptations
[hwc] Add environment variable QT_QPA_NO_FRAMEBUFFER_FIRST for setups like Vivante/Huawei

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
[hwc] Add theme hint support
Merge pull request #14 from Vesuri/themehints

[hwc] Add theme hint support
[spec] Improve versioning scheme
Do not use virtual display with HWC_DEVICE_API_VERSION_1_3

Using virtual display with HWC_DEVICE_API_VERSION_1_3 causes rendering issues, so avoid using it.
Updated comment about hwcomposer 1.2
Merge pull request #15 from siteshwar/hammerhead

Do not use virtual display with HWC_DEVICE_API_VERSION_1_3
Bump version
[eglfs] Set swapInterval at the right time

The swapInterval applies to the current context and cannot be set
before.
Use HWC_NUM_DISPLY_TYPES for 1.3 as number of displays

Some Android hwcomposer implementations expect all displays being initialized even if not
used.

Signed-off-by: Simon Busch <morphis@gravedo.de>
Add support for changes in API version 1.3

Signed-off-by: Simon Busch <morphis@gravedo.de>
Attribute planeAlpha was added with 1.2 but later

The addition of the planeAlpha attribute is one of the bad stories about the HAL
compatbility between different Android versions. It was added after 1.2 with jelly bean
but not marked as part of 1.2. It doesn't break the ABI. We're adding support for it
now depending on the Android version (>= 4.3).

Signed-off-by: Simon Busch <morphis@gravedo.de>
WIP: qeglfscontext.cpp: drop last EGLenum param

New 5.3.1 doesn't support
/OE/qt5-qpa-hwcomposer-plugin/5.2.0+gitrAUTOINC+ee9a40af8f-r0/git/hwcomposer/qeglfscontext.cpp: In constructor 'QEglFSCon
text::QEglFSContext(HwComposerContext*, QEglFSPageFlipper*, const QSurfaceFormat&, QPlatformOpenGLContext*, EGLDisplay, EGLenum)':
/OE/qt5-qpa-hwcomposer-plugin/5.2.0+gitrAUTOINC+ee9a40af8f-r0/git/hwcomposer/qeglfscontext.cpp:55:75: error: no matching function for call to 'QEGLPlatformContext::QEGLPlatformContext(QSurfaceFormat, QPlatformOpenGLContext*&, void*&, EGLConfig, EGLenum&)'
     m_hwc(hwc), m_pageFlipper(pageFlipper), m_swapIntervalConfigured(false)
                                                                           ^
/OE/qt5-qpa-hwcomposer-plugin/5.2.0+gitrAUTOINC+ee9a40af8f-r0/git/hwcomposer/qeglfscontext.cpp:55:75: note: candidates are:
In file included from /OE/qt5-qpa-hwcomposer-plugin/5.2.0+gitrAUTOINC+ee9a40af8f-r0/git/hwcomposer/qeglfscontext.h:46:0,
                 from /OE/qt5-qpa-hwcomposer-plugin/5.2.0+gitrAUTOINC+ee9a40af8f-r0/git/hwcomposer/qeglfscontext.cpp:42:
/OE/tenderloin/usr/include/qt5/QtPlatformSupport/5.3.1/QtPlatformSupport/private/qeglplatformcontext_p.h:55:5: note: QEGLPlatformContext::QEGLPlatformContext(const QSurfaceFormat&, QPlatformOpenGLContext*, EGLDisplay, EGLConfig)
     QEGLPlatformContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,
     ^
/OE/tenderloin/usr/include/qt5/QtPlatformSupport/5.3.1/QtPlatformSupport/private/qeglplatformcontext_p.h:55:5: note:   candidate expects 4 arguments, 5 provided
/OE/tenderloin/usr/include/qt5/QtPlatformSupport/5.3.1/QtPlatformSupport/private/qeglplatformcontext_p.h:54:5: note: QEGLPlatformContext::QEGLPlatformContext(const QSurfaceFormat&, QPlatformOpenGLContext*, EGLDisplay)
     QEGLPlatformContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display);
     ^
/OE/tenderloin/usr/include/qt5/QtPlatformSupport/5.3.1/QtPlatformSupport/private/qeglplatformcontext_p.h:54:5: note:   candidate expects 3 arguments, 5 provided
/OE/qt5-qpa-hwcomposer-plugin/5.2.0+gitrAUTOINC+ee9a40af8f-r0/git/hwcomposer/qeglfscontext.cpp: In member function 'virtual bool QEglFSContext::makeCurrent(QPlatformSurface*)':
/OE/qt5-qpa-hwcomposer-plugin/5.2.0+gitrAUTOINC+ee9a40af8f-r0/git/hwcomposer/qeglfscontext.cpp:75:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
Makefile:528: recipe for target '.obj/qeglfscontext.o' failed
make: *** [.obj/qeglfscontext.o] Error 1
ERROR: oe_runmake failed
O

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>