|
|
Chromium Code Reviews|
Created:
3 years, 11 months ago by shaobo.yan Modified:
3 years, 11 months ago CC:
chromium-reviews, feature-vr-reviews_chromium.org, agrieve+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionFix WebVR presentation is distorted if device is in portrait mode
BUG=681059
Patch Set 1 #
Total comments: 1
Patch Set 2 : Fix when DON flow is not skipped, but still failed when skip DON flow #Messages
Total messages: 16 (3 generated)
Description was changed from ========== Fix WebVR presentation is distorted if device is in portrait mode BUG=681059 ========== to ========== Fix WebVR presentation is distorted if device is in portrait mode BUG=681059 ==========
shaobo.yan@intel.com changed reviewers: + girard@chromium.org
shaobo.yan@intel.com changed reviewers: + mthiesse@chromium.org
lgtm with one nit https://codereview.chromium.org/2633243002/diff/1/chrome/android/java/src/org... File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): https://codereview.chromium.org/2633243002/diff/1/chrome/android/java/src/org... chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:142: if (primaryDisplay.getPhysicalDisplayWidth() Format nit: move > to end of first line
On 2017/01/17 03:00:42, girard wrote: > lgtm with one nit > > https://codereview.chromium.org/2633243002/diff/1/chrome/android/java/src/org... > File > chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java > (right): > > https://codereview.chromium.org/2633243002/diff/1/chrome/android/java/src/org... > chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:142: > if (primaryDisplay.getPhysicalDisplayWidth() > Format nit: move > to end of first line Thx for reviewing. But the presubmit check tool suggest me to place '>' in a new line.
This doesn't make sense, the device is forced into landscape mode before VrShellImpl is created.
On 2017/01/17 03:08:14, mthiesse wrote: > This doesn't make sense, the device is forced into landscape mode before > VrShellImpl is created. I mean this probably does 'fix' the problem in that we use landscape dimensions even in portrait mode, but we shouldn't be in portrait in the first place.
On 2017/01/17 03:11:25, mthiesse wrote: > On 2017/01/17 03:08:14, mthiesse wrote: > > This doesn't make sense, the device is forced into landscape mode before > > VrShellImpl is created. > > I mean this probably does 'fix' the problem in that we use landscape dimensions > even in portrait mode, but we shouldn't be in portrait in the first place. mthiesse: Check out the video in crbug.com/681059 - it appears that the user has locked the device in portrait mode, then goes into chrome, then puts chrome into vr mode.
On 2017/01/17 03:11:25, mthiesse wrote: > On 2017/01/17 03:08:14, mthiesse wrote: > > This doesn't make sense, the device is forced into landscape mode before > > VrShellImpl is created. > > I mean this probably does 'fix' the problem in that we use landscape dimensions > even in portrait mode, but we shouldn't be in portrait in the first place. That's right. But I'm a user whose like keep screen in portrait when I use phone. And I guess, in this situation, when there is a button named "Enter VR", and I click it, the blank will appear.
On 2017/01/17 03:15:37, girard wrote: > On 2017/01/17 03:11:25, mthiesse wrote: > > On 2017/01/17 03:08:14, mthiesse wrote: > > > This doesn't make sense, the device is forced into landscape mode before > > > VrShellImpl is created. > > > > I mean this probably does 'fix' the problem in that we use landscape > dimensions > > even in portrait mode, but we shouldn't be in portrait in the first place. > > mthiesse: Check out the video in crbug.com/681059 - it appears that the user has > locked the device in portrait mode, then goes into chrome, then puts chrome into > vr mode. That setting only disables auto-rotate. Apps can still force themselves into landscape. Maybe we're not doing that correctly.
On 2017/01/17 03:18:13, mthiesse wrote: > On 2017/01/17 03:15:37, girard wrote: > > On 2017/01/17 03:11:25, mthiesse wrote: > > > On 2017/01/17 03:08:14, mthiesse wrote: > > > > This doesn't make sense, the device is forced into landscape mode before > > > > VrShellImpl is created. > > > > > > I mean this probably does 'fix' the problem in that we use landscape > > dimensions > > > even in portrait mode, but we shouldn't be in portrait in the first place. > > > > mthiesse: Check out the video in crbug.com/681059 - it appears that the user > has > > locked the device in portrait mode, then goes into chrome, then puts chrome > into > > vr mode. > > That setting only disables auto-rotate. Apps can still force themselves into > landscape. Maybe we're not doing that correctly. I know what you mean now.
On 2017/01/17 03:18:13, mthiesse wrote: > On 2017/01/17 03:15:37, girard wrote: > > On 2017/01/17 03:11:25, mthiesse wrote: > > > On 2017/01/17 03:08:14, mthiesse wrote: > > > > This doesn't make sense, the device is forced into landscape mode before > > > > VrShellImpl is created. > > > > > > I mean this probably does 'fix' the problem in that we use landscape > > dimensions > > > even in portrait mode, but we shouldn't be in portrait in the first place. > > > > mthiesse: Check out the video in crbug.com/681059 - it appears that the user > has > > locked the device in portrait mode, then goes into chrome, then puts chrome > into > > vr mode. > > That setting only disables auto-rotate. Apps can still force themselves into > landscape. Maybe we're not doing that correctly. I know what you mean now. It seems that the code here(https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java?l=215) not work proper.And we should figure out the reason and fix it.
On 2017/01/17 03:27:20, shaobo.yan wrote: > On 2017/01/17 03:18:13, mthiesse wrote: > > On 2017/01/17 03:15:37, girard wrote: > > > On 2017/01/17 03:11:25, mthiesse wrote: > > > > On 2017/01/17 03:08:14, mthiesse wrote: > > > > > This doesn't make sense, the device is forced into landscape mode before > > > > > VrShellImpl is created. > > > > > > > > I mean this probably does 'fix' the problem in that we use landscape > > > dimensions > > > > even in portrait mode, but we shouldn't be in portrait in the first place. > > > > > > mthiesse: Check out the video in crbug.com/681059 - it appears that the user > > has > > > locked the device in portrait mode, then goes into chrome, then puts chrome > > into > > > vr mode. > > > > That setting only disables auto-rotate. Apps can still force themselves into > > landscape. Maybe we're not doing that correctly. > > I know what you mean now. > It seems that the code > here(https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java?l=215) > not work proper.And we should figure out the reason and fix it. I think this is fixed by my patch here: https://codereview.chromium.org/2635123002/ Can you please verify?
On 2017/01/17 15:35:24, mthiesse wrote: > On 2017/01/17 03:27:20, shaobo.yan wrote: > > On 2017/01/17 03:18:13, mthiesse wrote: > > > On 2017/01/17 03:15:37, girard wrote: > > > > On 2017/01/17 03:11:25, mthiesse wrote: > > > > > On 2017/01/17 03:08:14, mthiesse wrote: > > > > > > This doesn't make sense, the device is forced into landscape mode > before > > > > > > VrShellImpl is created. > > > > > > > > > > I mean this probably does 'fix' the problem in that we use landscape > > > > dimensions > > > > > even in portrait mode, but we shouldn't be in portrait in the first > place. > > > > > > > > mthiesse: Check out the video in crbug.com/681059 - it appears that the > user > > > has > > > > locked the device in portrait mode, then goes into chrome, then puts > chrome > > > into > > > > vr mode. > > > > > > That setting only disables auto-rotate. Apps can still force themselves into > > > landscape. Maybe we're not doing that correctly. > > > > I know what you mean now. > > It seems that the code > > > here(https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java?l=215) > > not work proper.And we should figure out the reason and fix it. > > I think this is fixed by my patch here: > https://codereview.chromium.org/2635123002/ > Can you please verify? It indeed fix the bug :) I'll close this issue.
Message was sent while issue was closed.
With verified, the root cause of this bug is resolved by mthiesse@ patch here: https://codereview.chromium.org/2635123002/. Close this issue. |
