• Michael Spang's avatar
    chromecast: Provide display information to display::Screen earlier · 95e122b4
    Michael Spang authored
    Chrome makes synchronous queries of screen geometry during startup. To
    satisfy these requests, assume the the first call to configure the
    primary display will succeed, and set this geometry in CastScreen
    synchronously in the startup case.
    
    DRM platform goes to great lengths to make this strategy work, by
    querying display information synchronously in the browser process prior
    to GPU process startup. It will also work for FakeDisplayDelegate. Cast
    platform is not affected by this change.
    
    BUG=b/74138444
    TEST=chromecast browser tests
    
    Change-Id: I68f88b78c151f938f99ed393fe630ecfa5b86dbc
    Reviewed-on: https://chromium-review.googlesource.com/952099
    Commit-Queue: Michael Spang <spang@chromium.org>
    Reviewed-by: default avatarSergey Volk <servolk@chromium.org>
    Reviewed-by: default avatarDaniel Nicoara <dnicoara@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#541264}
    95e122b4
cast_display_configurator.h 2.44 KB