hwc2: Handle corner and error conditions properly.

- Make changes as per the hwc2 header to return correct
  error codes.
- Check for comp types in SetLayerColor and
  SetCursorPosition and error out if they are not
  as the expected.
- As per the HWC2 header, SetCursorPosition cannot be
  called after validateDisplay, hence return error when
  its called after validate and before present.
- Handle Create and Destroy Virtual Displays accordingly.
- Includes 017ba1f and 5e5da2(partially) from lnx.3.9-rel.

Change-Id: I02814a266cf9d03017cdbb454233540cd01b1fed
Crs-fixed: 2068942
3 files changed