• wez's avatar
    Improve DPI matching & scaling logic. · 301d65d8
    wez authored
    Previously the client would attempt to scale the host desktop to account for the difference between client & host DPI. This could produce poor results in situations in which the client could not control the host dimensions, e.g. if the host was fixed at a very low resolution, but being displayed on a high-resolution display with the same notional DPI then lots of space would be wasted.
    
    This CL implements a new scheme, described in the comment block in remoting.ClientSession.updateDimensions(), that allows for more flexible up-scaling of very small hosts, and better handling of close-to-integer scale factors.
    
    BUG=135089, 366359
    
    Review URL: https://codereview.chromium.org/804783002
    
    Cr-Commit-Position: refs/heads/master@{#316353}
    301d65d8
desktop_connected_view.js 37.3 KB