Descriptionmus/views: Fix creating gfx::Display in high-dpi.
It's very easy to create a gfx::Display instance with incorrect values
for bounds/work-area when device-scale factor ≠ 1. This is because
when the gfx::Display is created with a specified bounds, it attempts
to automatically convert the bounds from pixel to DIP values. However,
work-area needs to set separately, and so the caller can use different
scaling factor when setting the bounds vs. setting the work-area. To
fix this, have the gfx::Display creator explicitly do the pixel-to-DIP
conversion before setting the bounds and work-area on the gfx::Display
instances.
BUG=600815, 605124
Committed: https://crrev.com/5b115788789b08177b4f38d9a0206a6c069ec4e6
Cr-Commit-Position: refs/heads/master@{#388507}
Patch Set 1 #
Total comments: 2
Patch Set 2 : . #
Messages
Total messages: 12 (5 generated)
|