[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>
Merge pull request #20 from energycsdx/master

Fix compilation when macro HWC_DEVICE_API_VERSION_0_1 defined
Require Android 4.3 for planeAlpha attribute

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>
Merge pull request #21 from webOS-ports/hwcomposer-1.3-support

Hwcomposer 1.3 support
[hwc] Updated instruction to include android-version.h
Merge pull request #22 from sledges/hwcomposer-1.3-support

Fix build
Merge pull request #19 from sletta/master

[eglfs] Set swapInterval at the right time
[eglfs] fix return logic

Signed-off-by: Simonas Leleiva <simonas.leleiva@jollamobile.com>