[Cleanup] Use display's property where possible
* The size and scale factor in Display and DisplayInfo could be different in the past, but they're now always the same, except for the unified desktop mode. * panel_rotation() was added recently so use it instead of DisplayInfo::GetLogicalActiveRotation(); ImageCursor can get the panel's orientation from display and no need to create a fake display. Bug: None Test: No functional change. All tests passes. Change-Id: I1a3dd26f96dd201eefcd58841e185eed6ab514ff Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1994672Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Zentaro Kavanagh <zentaro@chromium.org> Commit-Queue: Mitsuru Oshima (slow in TOK) <oshima@chromium.org> Cr-Commit-Position: refs/heads/master@{#737123}
Showing
Please register or sign in to comment