I initial thought I leave this up the actual implementation as I did here for webOS: https://github.com/webOS-ports/webos-hybris-compositor/commit/d74a51b14573dc0225cc81e4bb5d255aafa8c253#L0R110