• Sergey Ulanov's avatar
    Simplify GetNativeGpuMemoryBufferConfigurations() · 5c3bff68
    Sergey Ulanov authored
    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: default avatarDaniele Castagna <dcastagna@chromium.org>
    Reviewed-by: default avatarNico Weber <thakis@chromium.org>
    Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
    Commit-Queue: Sergey Ulanov <sergeyu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#652757}
    5c3bff68
chrome_restart_request.cc 14.2 KB