Simplify GetNativeGpuMemoryBufferConfigurations()

1. Previously GetNativeGpuMemoryBufferConfigurations() was calling
IsNativeGpuMemoryBufferConfigurationSupported() twice for many
configurations. Also support for some formats wasn't tested.
Updated this function to check support for all BufferFormat values
and to avoid redundant work.

2. Moved kEnableNativeGpuMemoryBuffers flag to ClientNativePixmapDmaBuf
and removed kDisableNativeGpuMemoryBuffers completely. These flags didn't
have any effect on platforms other than Linux

3. Disabled RG_88 support in ClientNativePixmapDmaBuf. RG_88 pixmaps were
already disabled in GetNativeGpuMemoryBufferConfigurations() and they are
broken on chromeos.

Bug: 852011, 954233
Change-Id: I1651d97325bc5fdea02e9f03e0a83dcb3e2109c0
Reviewed-by: Daniele Castagna <>
Reviewed-by: Nico Weber <>
Reviewed-by: Antoine Labour <>
Commit-Queue: Sergey Ulanov <>
Cr-Commit-Position: refs/heads/master@{#652757}
14 files changed