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

Issue 2508703002: WebVR: Use content CVC size for compositor rendering (Closed)

Created:
4 years, 1 month ago by klausw
Modified:
4 years, 1 month ago
Reviewers:
mthiesse, bajones, bshe
CC:
chromium-reviews, blink-reviews, haraken, feature-vr-reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebVR: Use content CVC size for compositor rendering We can't currently resize the content window used by the compositor rendering path, so we must use its dimensions for the WebVR API reported render sizes. It includes a rather nasty hack to override canvas size to 100% if it was manually set to something different. This works around three.js examples not rendering right, apparently a fullscreened canvas just gets centered if it explicitly sets a size smaller than the fullscreen dimensions. BUG=389343, 655722 Committed: https://crrev.com/4026d565687ddbc1f67c4cc04887c339b7a03685 Cr-Commit-Position: refs/heads/master@{#432811}

Patch Set 1 #

Patch Set 2 : WebVR: Use content CVC size for compositor rendering. #

Patch Set 3 : Undo VrShellImpl changes, use native-side values. #

Total comments: 27

Patch Set 4 : bajones #8, mthiesse #10,#11: Address review comments #

Patch Set 5 : Fix leftover hardcoded dimensions #

Patch Set 6 : Restore render_size_primary_ for WebVR->VrShell transition #

Patch Set 7 : Delay OnGvrDelegateReady, add crbug.com/655728 to TODOs. #

Patch Set 8 : Rebase, use more appropriate crbug/655722 for TODOS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -43 lines) Patch
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 3 4 5 6 7 5 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 3 4 5 6 7 10 chunks +136 lines, -33 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_delegate.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M device/vr/android/gvr/gvr_delegate.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M device/vr/android/gvr/gvr_device.cc View 1 2 3 4 5 6 7 3 chunks +19 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 1 2 3 4 5 6 7 3 chunks +41 lines, -6 lines 0 comments Download

Messages

Total messages: 37 (18 generated)
klausw
bshe@chromium.org: Please review changes in vr_shell.cc bajones@chromium.org: Please review changes elsewhere
4 years, 1 month ago (2016-11-16 20:20:06 UTC) #2
mthiesse
On 2016/11/16 20:20:06, klausw wrote: > mailto:bshe@chromium.org: Please review changes in vr_shell.cc > > mailto:bajones@chromium.org: ...
4 years, 1 month ago (2016-11-16 20:24:47 UTC) #3
mthiesse
On 2016/11/16 20:24:47, mthiesse wrote: > On 2016/11/16 20:20:06, klausw wrote: > > mailto:bshe@chromium.org: Please ...
4 years, 1 month ago (2016-11-16 20:37:49 UTC) #4
klausw
On 2016/11/16 20:37:49, mthiesse wrote: > On 2016/11/16 20:24:47, mthiesse wrote: > > On 2016/11/16 ...
4 years, 1 month ago (2016-11-16 20:47:18 UTC) #6
bajones
LGTM with some nits. https://codereview.chromium.org/2508703002/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2508703002/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc#newcode610 chrome/browser/android/vr_shell/vr_shell.cc:610: DrawUiView(&head_pose, world_elements, render_size_primary_, 0); Would ...
4 years, 1 month ago (2016-11-16 21:23:53 UTC) #8
mthiesse
https://codereview.chromium.org/2508703002/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2508703002/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc#newcode268 chrome/browser/android/vr_shell/vr_shell.cc:268: specs[specs.size() - 1].SetSize(1024, 1024); magic numbers to constants with ...
4 years, 1 month ago (2016-11-16 21:30:42 UTC) #10
mthiesse
https://codereview.chromium.org/2508703002/diff/40001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): https://codereview.chromium.org/2508703002/diff/40001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp#newcode343 third_party/WebKit/Source/modules/vr/VRDisplay.cpp:343: m_fullscreenOrigWidth = inlineStyle->getPropertyValue(CSSPropertyWidth); On 2016/11/16 21:30:41, mthiesse wrote: > ...
4 years, 1 month ago (2016-11-16 21:31:35 UTC) #11
klausw
Updated, PTAL. https://codereview.chromium.org/2508703002/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2508703002/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc#newcode268 chrome/browser/android/vr_shell/vr_shell.cc:268: specs[specs.size() - 1].SetSize(1024, 1024); On 2016/11/16 21:30:41, ...
4 years, 1 month ago (2016-11-16 23:37:39 UTC) #12
klausw
https://codereview.chromium.org/2508703002/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2508703002/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc#newcode525 chrome/browser/android/vr_shell/vr_shell.cc:525: if (html_interface_->GetMode() == UiInterface::Mode::WEB_VR) { On 2016/11/16 23:37:38, klausw ...
4 years, 1 month ago (2016-11-16 23:50:04 UTC) #15
klausw
https://codereview.chromium.org/2508703002/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2508703002/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc#newcode525 chrome/browser/android/vr_shell/vr_shell.cc:525: if (html_interface_->GetMode() == UiInterface::Mode::WEB_VR) { On 2016/11/16 23:50:04, klausw ...
4 years, 1 month ago (2016-11-17 00:07:42 UTC) #16
bajones
On 2016/11/17 00:07:42, klausw wrote: > https://codereview.chromium.org/2508703002/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc > File chrome/browser/android/vr_shell/vr_shell.cc (right): > > https://codereview.chromium.org/2508703002/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc#newcode525 > ...
4 years, 1 month ago (2016-11-17 01:26:05 UTC) #19
mthiesse
lgtm
4 years, 1 month ago (2016-11-17 01:30:12 UTC) #20
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/2508703002/120001
4 years, 1 month ago (2016-11-17 02:05:57 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_TIMED_OUT, no build URL) android_clang_dbg_recipe on ...
4 years, 1 month ago (2016-11-17 03:27:21 UTC) #25
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/2508703002/120001
4 years, 1 month ago (2016-11-17 03:31:05 UTC) #27
commit-bot: I haz the power
Failed to apply patch for chrome/browser/android/vr_shell/vr_shell.cc: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-17 04:25:33 UTC) #29
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/2508703002/140001
4 years, 1 month ago (2016-11-17 05:08:04 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-17 08:28:21 UTC) #35
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 08:31:12 UTC) #37
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4026d565687ddbc1f67c4cc04887c339b7a03685
Cr-Commit-Position: refs/heads/master@{#432811}

Powered by Google App Engine
This is Rietveld 408576698