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

Issue 2428383006: Decouple VR Shell DPR and CSS size from Physical Displays. (Closed)

Created:
4 years, 2 months ago by mthiesse
Modified:
4 years ago
CC:
chromium-reviews, agrieve+watch_chromium.org, amp, klausw
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Decouple VR Shell DPR and CSS size from Physical Displays. This CL introduces two virtual displays for VR Shell, one for the content window, and one for the background UI window (which is made as small as possible to save on memory). The UI now dynamically controls its size, and the content defaults to a reasonable size regular web browsing (in VR). BUG=643480 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/4cc2259e5139ce40daa4230b25a4ee7183c23d1b Cr-Commit-Position: refs/heads/master@{#435702}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix load-bearing debugging code ;) #

Total comments: 4

Patch Set 3 : Rebase #

Total comments: 10

Patch Set 4 : Address cjgrant's comments. #

Total comments: 14

Patch Set 5 : Address bshe comments + minor fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -149 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java View 1 2 3 4 14 chunks +147 lines, -24 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrWindowAndroid.java View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_compositor.h View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_compositor.cc View 1 2 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 3 4 4 chunks +20 lines, -13 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 3 4 10 chunks +58 lines, -48 lines 0 comments Download
M chrome/browser/resources/vr_shell/vr_shell_ui.css View 1 2 3 4 7 chunks +9 lines, -25 lines 0 comments Download
M chrome/browser/resources/vr_shell/vr_shell_ui.js View 1 2 3 4 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/resources/vr_shell/vr_shell_ui_api.js View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 1 2 2 chunks +28 lines, -7 lines 0 comments Download
M ui/android/delegated_frame_host_android.cc View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/WindowAndroid.java View 1 2 6 chunks +18 lines, -10 lines 0 comments Download
M ui/snapshot/snapshot_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (17 generated)
mthiesse
dtrainor@chromium.org: Please review changes in chrome/android oshima@chromium.org: Please review changes in ui/display/ bshe@chromium.org: Please review ...
4 years, 2 months ago (2016-10-20 19:53:42 UTC) #2
mthiesse
https://codereview.chromium.org/2428383006/diff/1/ui/display/android/screen_android.cc File ui/display/android/screen_android.cc (right): https://codereview.chromium.org/2428383006/diff/1/ui/display/android/screen_android.cc#newcode29 ui/display/android/screen_android.cc:29: if (vr_display_map_.size() > 0) { Whoops meant to revert ...
4 years, 2 months ago (2016-10-20 22:01:37 UTC) #4
mthiesse
Alright, PTAL. Sorry about that, it turns out the debug statements I meant to remove ...
4 years, 2 months ago (2016-10-20 23:28:52 UTC) #6
boliu
screen_android change isn't going in the direction intended by crbug.com/625089. I want native screen_android things ...
4 years, 2 months ago (2016-10-20 23:38:44 UTC) #7
boliu
On 2016/10/20 23:38:44, boliu wrote: > screen_android change isn't going in the direction intended by ...
4 years, 2 months ago (2016-10-20 23:40:50 UTC) #8
oshima
https://codereview.chromium.org/2428383006/diff/40001/ui/display/android/screen_android.cc File ui/display/android/screen_android.cc (right): https://codereview.chromium.org/2428383006/diff/40001/ui/display/android/screen_android.cc#newcode56 ui/display/android/screen_android.cc:56: display_map_[view] = display; nit: emplace(view, display) https://codereview.chromium.org/2428383006/diff/40001/ui/display/android/screen_android.cc#newcode71 ui/display/android/screen_android.cc:71: } ...
4 years, 1 month ago (2016-10-24 20:01:10 UTC) #9
David Trainor- moved to gerrit
I'm ok with the changes to chrome/android. I've been waiting for the discussion on the ...
4 years, 1 month ago (2016-10-26 00:47:51 UTC) #10
mthiesse
Sorry for the delay, blocking refactors have been completed. PTAL. -oshima who's no longer needed, ...
4 years ago (2016-11-29 20:03:32 UTC) #14
cjgrant
https://codereview.chromium.org/2428383006/diff/140001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2428383006/diff/140001/chrome/browser/android/vr_shell/vr_shell.cc#newcode1025 chrome/browser/android/vr_shell/vr_shell.cc:1025: void VrShell::SetContentCssSize(float width, float height, float dpr) { Just ...
4 years ago (2016-11-29 20:28:07 UTC) #18
mthiesse
https://codereview.chromium.org/2428383006/diff/140001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2428383006/diff/140001/chrome/browser/android/vr_shell/vr_shell.cc#newcode1025 chrome/browser/android/vr_shell/vr_shell.cc:1025: void VrShell::SetContentCssSize(float width, float height, float dpr) { On ...
4 years ago (2016-11-29 21:07:22 UTC) #23
cjgrant
On 2016/11/29 21:07:22, mthiesse wrote: > https://codereview.chromium.org/2428383006/diff/140001/chrome/browser/android/vr_shell/vr_shell.cc > File chrome/browser/android/vr_shell/vr_shell.cc (right): > > https://codereview.chromium.org/2428383006/diff/140001/chrome/browser/android/vr_shell/vr_shell.cc#newcode1025 > ...
4 years ago (2016-11-29 21:39:33 UTC) #24
bajones
modules/vr/ LGTM, though this just stresses how much we need to get away from the ...
4 years ago (2016-11-29 23:22:15 UTC) #25
mthiesse
boliu@ please review content/browser/ changes, missed that file in my earlier request.
4 years ago (2016-11-29 23:27:21 UTC) #26
Ted C
On 2016/11/29 23:27:21, mthiesse wrote: > boliu@ please review content/browser/ changes, missed that file in ...
4 years ago (2016-11-30 00:12:04 UTC) #27
boliu
On 2016/11/29 23:27:21, mthiesse wrote: > boliu@ please review content/browser/ changes, missed that file in ...
4 years ago (2016-11-30 21:51:59 UTC) #28
bshe
lgtm with nits https://codereview.chromium.org/2428383006/diff/160001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): https://codereview.chromium.org/2428383006/diff/160001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java#newcode162 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:162: setUiCssSize(DEFAULT_UI_WIDTH, DEFAULT_UI_HEIGHT, DEFAULT_DPR); can line 161 ...
4 years ago (2016-11-30 23:00:47 UTC) #29
mthiesse
https://codereview.chromium.org/2428383006/diff/160001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): https://codereview.chromium.org/2428383006/diff/160001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java#newcode162 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:162: setUiCssSize(DEFAULT_UI_WIDTH, DEFAULT_UI_HEIGHT, DEFAULT_DPR); On 2016/11/30 23:00:46, bshe wrote: > ...
4 years ago (2016-11-30 23:25:06 UTC) #30
bshe
On 2016/11/30 23:25:06, mthiesse wrote: > https://codereview.chromium.org/2428383006/diff/160001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java > File > chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java > (right): > > ...
4 years ago (2016-12-01 19:13:45 UTC) #31
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/2428383006/180001
4 years ago (2016-12-01 19:18:12 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:180001)
4 years ago (2016-12-01 20:46:55 UTC) #36
commit-bot: I haz the power
4 years ago (2016-12-01 20:49:16 UTC) #38
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4cc2259e5139ce40daa4230b25a4ee7183c23d1b
Cr-Commit-Position: refs/heads/master@{#435702}

Powered by Google App Engine
This is Rietveld 408576698