• Zhenyao Mo's avatar
    Revert "Add pixel format support flags on Windows." · e25d4791
    Zhenyao Mo authored
    This reverts commit ca612692.
    
    Reason for revert: doesn't explain why YUY2 swap chain creation
    failed on Win10/AMD GPU, so this CL is unnecessary.
    
    Original change's description:
    > Add pixel format support flags on Windows.
    > 
    > The flags are queried through ID3D11Device::CheckFormatSupport().
    > 
    > Hopefully they can be used to bypass YUY2 related tests on AMD
    > where creating a YUY2 swap chain fails.
    > 
    > Also, they can be useful diagnosing swap chain related issues
    > from user machines, i.e., whether we assumed certain capabilities
    > without checking.
    > 
    > BUG=967860
    > TEST=bots
    > R=​sunnyps@chromium.org,piman@chromium.org
    > 
    > Change-Id: I5dff9069b2fc53851cbffc5263bd4a2e0e03582f
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1637195
    > Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    > Reviewed-by: Antoine Labour <piman@chromium.org>
    > Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org>
    > Commit-Queue: Zhenyao Mo <zmo@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#665218}
    
    TBR=dcheng@chromium.org,zmo@chromium.org,sunnyps@chromium.org,piman@chromium.org
    
    Change-Id: Ic93530b90006c41da694a2bc7ae65d13d541b998
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    Bug: 967860
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1639360Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
    Commit-Queue: Zhenyao Mo <zmo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#665259}
    e25d4791
direct_composition_surface_win_unittest.cc 38.6 KB