kms plugin: do not needlessly query drm information twice
authorRolf Eike Beer <eb@emlix.com>
Wed, 7 May 2014 09:02:23 +0000 (11:02 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 May 2014 14:33:21 +0000 (16:33 +0200)
commit9c4996b709ee5cebb1513bb7fe4703caee90f304
treee17cebf959570f7496f64ed57b0c136a9e7eefb9
parentc82668d39dbc7b59217b728cf4ea1ea05e3e6f48
kms plugin: do not needlessly query drm information twice

QKmsDevice already requested the drmModeRes and drmModeConnector
information. Simply pass them to the QKmsScreen constructor instead of
requesting and freeing them there again.

Change-Id: I4897d76d7b13d83297c928b6e10e17ccdfdbd242
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
src/plugins/platforms/kms/qkmsdevice.cpp
src/plugins/platforms/kms/qkmsscreen.cpp
src/plugins/platforms/kms/qkmsscreen.h