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-on: https://chromium-review.googlesource.com/c/chromium/src/+/1570760Reviewed-by:Daniele Castagna <dcastagna@chromium.org> Reviewed-by:
Nico Weber <thakis@chromium.org> Reviewed-by:
Antoine Labour <piman@chromium.org> Commit-Queue: Sergey Ulanov <sergeyu@chromium.org> Cr-Commit-Position: refs/heads/master@{#652757}
Showing
Please register or sign in to comment