aura: Special-case allocation of LocalSurfaceId for root.
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:Scott Violet <sky@chromium.org> Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org> Cr-Commit-Position: refs/heads/master@{#551180}
Showing
Please register or sign in to comment