• Sunny Sachanandani's avatar
    gpu: Make --disable-gpu-vsync work with direct composition · 8680afd3
    Sunny Sachanandani authored
    This broke because the direct composition path doesn't use swap interval
    set by eglSwapInterval in ANGLE. Since we only care about disabling via
    command line, it's ok to just handle that instead of SetSwapInterval.
    
    This will still not work when we use a direct composition surface
    instead of swap chain but that only happens when we use overlays. There
    may be no way to make this case work since the swap chain is not
    controlled by Chrome.
    
    Tested with vsynctester.com on my home desktop.
    
    R=kbr,piman
    BUG=480361,787485
    
    Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
    Change-Id: Ife5804b4e9bcede41bb29cd01e54e81f0d278b62
    Reviewed-on: https://chromium-review.googlesource.com/954020Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
    Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
    Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#541687}
    8680afd3
direct_composition_child_surface_win.h 3.29 KB