libui: Allow extension of valid gralloc 1.0 buffer usage bits

* Change I7f4174581e24e361577640b9263514a168ed482d implemented
  validation of the buffer description info prior to creating
  the descriptor. Some of our legacy devices need to whitelist
  additional usage bits to support various functionality.

Change-Id: Ie369e78f78e9ac0b18ab3dfea520d4f123005d92

libui: Extend adb95ae to Gralloc3

Port from LineageOS FP2 to Fairphone FP2:
* Just define the usage bits here directly; we don't need the
  flexibility of board variables.

Issue: FP2A10-39
Change-Id: I96a9f86f5c834a4282a172e7134422caf560b238
(cherry picked from commit 74c35e673c1262f99dc6213cd78e1429920f731e)
3 files changed