Skip to content
  • fsamuel's avatar
    Mus: Fix Capabilities and Install SwapBuffersCompleted/VSync callbacks · 58b5a225
    fsamuel authored
    DirectOutputSurface(Ozone) should be informed when a swap buffers is
    completed or when vsync parameters are updated so that it can update the
    compositor accordingly. We need to make sure that the callback is called on the Mus
    compositor thread. InProcessCommandBuffer calls
    these callbacks on the "origin" thread in this patch.
    
    Furthermore, InProcessContextProvider was faking Capabilities instead of grabbing
    them from InProcessContextProvider. This doesn't work on
    ozone platforms.
    
    BUG=668136
    CQ_INCLUDE_TRYBOTS=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
    
    Review-Url: https://codereview.chromium.org/2529703002
    Cr-Commit-Position: refs/heads/master@{#434285}
    58b5a225