• Andres Calderon Jaramillo's avatar
    ozone: Don't scanout buffers with horizontal flip. · 476e4996
    Andres Calderon Jaramillo authored
    This CL ensures that buffers that require a horizontal flip transform
    are not promoted to overlays. The reason why this is needed is that
    support for this transform is dependent on the buffer layout (e.g., on
    some devices, linear buffers with a horizontal flip transform cannot be
    scanned out). Unfortunately, page flip testing does not currently use
    real buffers, so we could end up promoting a buffer to an overlay plane
    incorrectly.
    
    Horizontally flipped linear buffers are used in the camera capture app.
    They can also be used by web pages that use getUserMedia() plus CSS.
    
    Bug: b:161758029, b:168899960
    Test: launch the camera capture app on JSL
    Change-Id: I24df6c8e0820ce391e5699de3cb906f348df9ec2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2434911
    Commit-Queue: Andres Calderon Jaramillo <andrescj@chromium.org>
    Reviewed-by: default avatarDaniele Castagna <dcastagna@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#811375}
    476e4996
crtc_controller.cc 4.37 KB