• marcheu's avatar
    Fix refresh rate query for internal monitors · 1ad53a56
    marcheu authored
    GetSelectedModeForDisplayId doesn't work for internal displays. This
    results in failing the query, and falling back to refresh rate
    approximation in the scheduler. To fix this, we use
    GetActiveModeForDisplayId which exists even on internal displays.
    This fixes the swap interval that the cc scheduler sees.
    
    BUG=chromium:415359
    TEST=make a trace on pixel, look at interval_us, it is a constant 16677 now (before it was variable and inaccurate)
    
    Review URL: https://codereview.chromium.org/582543002
    
    Cr-Commit-Position: refs/heads/master@{#295505}
    1ad53a56
display_controller.cc 29 KB