• Sunny Sachanandani's avatar
    Skip creating DC video swap chain in all cases when size is zero · f87eeced
    Sunny Sachanandani authored
    Video swap chain size is zero when scaled overlays are supported, and
    contents rect is zero. The earlier fix missed this case.
    
    This CL moves the calculation of swap chain size to DCLayerTree so that
    we can skip swap chain creation and other steps which depend on swap
    chain size.
    
    A follow-up CL will remove the CHECKs and replace them with UMA where
    it makes sense.
    
    Bug: 792806
    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: I3de017da44913c9522a0b98c91324efab8148ee6
    Reviewed-on: https://chromium-review.googlesource.com/1018499Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
    Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#552225}
    f87eeced
direct_composition_surface_win.h 4.27 KB