qt5base-lts/mkspecs/devices/linux-rasp-pi-g++
Girish Ramakrishnan e60ca0de60 eglfs: rework hooks design
There are two problems with the current design:
1. if (hooks) hooks->foo() doesn't work in debug mode when no platform hook
   is defined. The problem doesn't arise in release mode because the compiler
   optimizes away the if (hooks) into a no-op since hooks is NULL when no
   platform hook is defined.
2. Adding a new hook requires changing every platform's hook implementation.

New approach:
1. Define QEglFSHooks as a class with virtual functions. A stub file provides
   the default implementation.
2. Platform hooks derive from above class and reimplement whatever is needed.

The filenames and variables have been changed to be more in line with the
Qt style.

Change-Id: I2eaaa5ad7c8b48a06361c4747d4f210c428c983f
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
2012-04-11 09:24:58 +02:00
..
qeglfshooks_pi.cpp eglfs: rework hooks design 2012-04-11 09:24:58 +02:00
qmake.conf eglfs: rework hooks design 2012-04-11 09:24:58 +02:00
qplatformdefs.h device: Add device support for the Broadcom Raspberry PI 2012-04-04 20:11:09 +02:00