Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Issue 2866843002: [Remoting Client] Always ResizeToFit when desktop/surface size is changed (Closed)

Created:
3 years, 7 months ago by Yuwei
Modified:
3 years, 7 months ago
Reviewers:
joedow
CC:
chromium-reviews, chromoting-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -21 lines) Patch
M remoting/client/desktop_viewport.h View 1 1 chunk +2 lines, -5 lines 0 comments Download
M remoting/client/desktop_viewport.cc View 1 3 chunks +8 lines, -16 lines 0 comments Download
M remoting/client/view_matrix.h View 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/client/view_matrix.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Yuwei
PTAL thanks!
3 years, 7 months ago (2017-05-05 21:17:23 UTC) #2
joedow
https://codereview.chromium.org/2866843002/diff/1/remoting/client/desktop_viewport.cc File remoting/client/desktop_viewport.cc (right): https://codereview.chromium.org/2866843002/diff/1/remoting/client/desktop_viewport.cc#newcode93 remoting/client/desktop_viewport.cc:93: return desktop_size_ready_ && surface_size_ready_; Per discussion, I think removing ...
3 years, 7 months ago (2017-05-05 21:53:21 UTC) #3
Yuwei
PTAL Thanks! https://codereview.chromium.org/2866843002/diff/1/remoting/client/desktop_viewport.cc File remoting/client/desktop_viewport.cc (right): https://codereview.chromium.org/2866843002/diff/1/remoting/client/desktop_viewport.cc#newcode93 remoting/client/desktop_viewport.cc:93: return desktop_size_ready_ && surface_size_ready_; On 2017/05/05 21:53:20, ...
3 years, 7 months ago (2017-05-05 22:04:48 UTC) #4
joedow
lgtm
3 years, 7 months ago (2017-05-05 22:07:01 UTC) #5
Yuwei
On 2017/05/05 22:07:01, joedow wrote: > lgtm Thanks!
3 years, 7 months ago (2017-05-05 22:18:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2866843002/20001
3 years, 7 months ago (2017-05-05 22:19:55 UTC) #8
commit-bot: I haz the power
3 years, 7 months ago (2017-05-05 22:49:49 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7d3646bfe269e917e57434dcc3fc...

Powered by Google App Engine
This is Rietveld 408576698