Chromium Code Reviews
Description[Remoting Client] Always ResizeToFit when desktop/surface size is changed
Previously in DesktopViewport we only call ResizeToFit when the desktop/surface
is set for the first time. This doesn't always work. Occasionally the host will
send a 0x0 frame before sending the frame with the actual dimensions. This
makes the viewport stuck with inf scale.
This CL always resets the viewport when either of the dimension is changed.
This will also help with the screen rotation case.
In the future we may need exceptions for not calling ResizeToFit, e.g. showing
the keyboard. We might just introduce a parameter or something to disable it,
but lets do it when we get to that point.
BUG=714193
Review-Url: https://codereview.chromium.org/2866843002
Cr-Commit-Position: refs/heads/master@{#469784}
Committed: https://chromium.googlesource.com/chromium/src/+/7d3646bfe269e917e57434dcc3fce46121c136e5
Patch Set 1 #
Total comments: 2
Patch Set 2 : Resolve Feedback #
Messages
Total messages: 11 (4 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||