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

Issue 2848143002: [Remoting iOS] Fix screen tearing and screen dimensions (Closed)

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

Description

[Remoting iOS] Fix screen tearing and screen dimensions This CL: 1. Fixes the screen tearing issue by getting rid of the GLKViewController, which runs its rendering loops and swaps buffers in unexpected moment. The GL view will now do on-demand buffer swapping, similar to how the Android client works. 2. Passes GL view dimensions to the renderer to fix the screen aspect issues. BUG=716699 Review-Url: https://codereview.chromium.org/2848143002 Cr-Commit-Position: refs/heads/master@{#468418} Committed: https://chromium.googlesource.com/chromium/src/+/807d153f2330e11c8f6f6590ec0eab737c39dffe

Patch Set 1 #

Patch Set 2 : Pass dimension correctly #

Patch Set 3 : Request first frame #

Total comments: 12

Patch Set 4 : Resolve Feedbacks #

Patch Set 5 : Add comments about not inheriting GLKViewController #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -37 lines) Patch
M remoting/client/ios/app/host_view_controller.h View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M remoting/client/ios/app/host_view_controller.mm View 1 2 3 4 chunks +37 lines, -19 lines 0 comments Download
M remoting/client/ios/display/gl_display_handler.h View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M remoting/client/ios/display/gl_display_handler.mm View 1 2 7 chunks +37 lines, -15 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
Yuwei
PTAL. Thanks! https://codereview.chromium.org/2848143002/diff/40001/remoting/client/ios/display/gl_display_handler.mm File remoting/client/ios/display/gl_display_handler.mm (right): https://codereview.chromium.org/2848143002/diff/40001/remoting/client/ios/display/gl_display_handler.mm#newcode172 remoting/client/ios/display/gl_display_handler.mm:172: std::array<float, 9> matrix = {{1, 0, 0, ...
3 years, 7 months ago (2017-04-30 01:18:06 UTC) #2
nicholss
On 2017/04/30 01:18:06, Yuwei wrote: > PTAL. Thanks! > > https://codereview.chromium.org/2848143002/diff/40001/remoting/client/ios/display/gl_display_handler.mm > File remoting/client/ios/display/gl_display_handler.mm (right): ...
3 years, 7 months ago (2017-05-01 16:20:05 UTC) #4
nicholss
https://codereview.chromium.org/2848143002/diff/40001/remoting/client/ios/app/host_view_controller.mm File remoting/client/ios/app/host_view_controller.mm (right): https://codereview.chromium.org/2848143002/diff/40001/remoting/client/ios/app/host_view_controller.mm#newcode20 remoting/client/ios/app/host_view_controller.mm:20: GLKView* _gl_view; Why do you need the gl view ...
3 years, 7 months ago (2017-05-01 16:20:14 UTC) #5
nicholss
https://codereview.chromium.org/2848143002/diff/40001/remoting/client/ios/display/gl_display_handler.h File remoting/client/ios/display/gl_display_handler.h (right): https://codereview.chromium.org/2848143002/diff/40001/remoting/client/ios/display/gl_display_handler.h#newcode31 remoting/client/ios/display/gl_display_handler.h:31: - (void)onSurfaceCreated:(GLKView*)view; I know the rest of the file ...
3 years, 7 months ago (2017-05-01 16:53:18 UTC) #6
Yuwei
PTAL Thanks! I just made it call onSurfaceChanged in viewDidLayoutSubviews so rotation should (mostly works). ...
3 years, 7 months ago (2017-05-01 20:58:08 UTC) #7
nicholss
LGTM Thanks for the help!
3 years, 7 months ago (2017-05-01 21:16:34 UTC) #8
Yuwei
On 2017/05/01 21:16:34, nicholss wrote: > LGTM > > Thanks for the help! Thanks! Checking ...
3 years, 7 months ago (2017-05-01 21:20:25 UTC) #9
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/2848143002/80001
3 years, 7 months ago (2017-05-01 21:21:12 UTC) #11
Yuwei
Sorry... Just forgot the OWNER thing right after you talked about it... Jamie could you ...
3 years, 7 months ago (2017-05-01 21:23:59 UTC) #12
Jamie
lgtm
3 years, 7 months ago (2017-05-01 21:28:37 UTC) #13
commit-bot: I haz the power
3 years, 7 months ago (2017-05-01 21:35:49 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/807d153f2330e11c8f6f6590ec0e...

Powered by Google App Engine
This is Rietveld 408576698