Add support for P+ environments

Merged John Stultz requested to merge john.stultz/drm-hwcomposer:rfc-aosp-p-fixes into master

Originally-by: Alistair Strachan

With Android P, the GraphicBufferMapper ImportBuffer interface has changed, which breaks the current drm_hwcomposer master branch:

Alistair has updated the AOSP/master branch of drm_hwcomposer to make it build:

But since we need to keep older users working, so I've forward ported and conditionalized the code so both new and old users can properly build.

Also includes fixes for the FIXME issues Alistair pointed out in the initial patch.

Edited by John Stultz

Merge request reports