Android: Re-enable threaded rendering

In Qt 5.2.x, the platform plugin inherited from the EGLFS platform
plugin, so calling the super class implementation of hasCapability()
would return true for ThreadedOpenGL. Since this link was removed
in Qt 5.3, we would return false for all devices, giving us a large
performance regression.

Task-number: QTBUG-37586
Change-Id: I27758649ee9c0921902787b93be943751c839eb8
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Reviewed-by: BogDan Vatra <bogdan@kde.org>
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
bb10
Eskil Abrahamsen Blomfeldt 2014-03-19 09:55:05 +01:00 committed by The Qt Project
parent 53ee91fc8d
commit 84c8e4717c
1 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,8 @@ bool QAndroidPlatformIntegration::hasCapability(Capability cap) const
case ThreadedOpenGL:
if (needsWorkaround())
return false;
// fall through
else
return true;
default:
return QPlatformIntegration::hasCapability(cap);
}