• Maggie Chen's avatar
    Do not downscale direct composition overlay layers in Windows · b1028aa7
    Maggie Chen authored
    1. If HW overlay scaling is supported, set swap chain size to the minimum of the decoded
    video buffer size and the onscreen video size.
    2. If HW overlay scaling is not supported, set swap chain size to onscreen video size.
    
    This CL removes overlay down scaling, and therefore fixes no hardware overlays due to
    down scaling not working on Intel display HW.
    
    BUG=868561
    
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
    Change-Id: I251ddb4f5e24807dd7267eca38180cae241fb6f6
    Reviewed-on: https://chromium-review.googlesource.com/1225295
    Commit-Queue: Maggie Chen <magchen@chromium.org>
    Reviewed-by: default avatarSunny Sachanandani <sunnyps@chromium.org>
    Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#594159}
    b1028aa7
direct_composition_surface_win.cc 60.8 KB