• Sadrul Habib Chowdhury's avatar
    aura: Special-case allocation of LocalSurfaceId for root. · effe2887
    Sadrul Habib Chowdhury authored
    A LocalSurfaceId allocation/renewal for an aura::Window happens in
    response to a bounds or dsf-change to its corresponding ui::Layer.
    The root window is special in this regard, since its state can be
    changed only by the WindowTreeHost, and should happen before the
    ui::Compositor is updated for the new bounds/dsf (since it needs
    to provide the LocalSurfaceId to the ui::Compositor).
    
    Window::SetDeviceScaleFactor() is no longer needed after this. So
    remove that.
    
    BUG=821987
    
    Change-Id: I3eb674b1c59a2728315125b6eb14b610033f6bf4
    Reviewed-on: https://chromium-review.googlesource.com/1012932Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#551180}
    effe2887
window_port_mus.cc 25.1 KB