desks: Use snapped to display size for desk animation layers.
From logs, on some scale factors (1567x1044), root window's get bounds functions will return one pixel shorter width (1566x1044). Add a new const member variable that calculates using SnapBoundsToDisplayEdge, and use that variable in all desk animation calculations instead of aura::Window::bounds() and similar. This will prevent off by one pixel bugs like the linked one. Test: manual Bug: 1134391 Change-Id: I3a20c6b21bae63df4d8137a50635320b34d503f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500454Reviewed-by:Ahmed Fakhry <afakhry@chromium.org> Commit-Queue: Sammie Quon <sammiequon@chromium.org> Cr-Commit-Position: refs/heads/master@{#821534}
Showing
Please register or sign in to comment