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

Issue 2869273008: VR: Fix cursor draw order. (Closed)

Created:
3 years, 7 months ago by mthiesse
Modified:
3 years, 7 months ago
Reviewers:
acondor_, mthiesse1, cjgrant
CC:
chromium-reviews, feature-vr-reviews_chromium.org, bajones
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

VR: Fix cursor draw order. Prior to this CL, the cursor was always drawn last, meaning it could not be seen through transparent objects. This CL draws the cursor after the object it's supposed to be sitting on, so that transparencies work as expected. BUG=721390 Review-Url: https://codereview.chromium.org/2869273008 Cr-Commit-Position: refs/heads/master@{#471321} Committed: https://chromium.googlesource.com/chromium/src/+/39500a44e5e31f81001ddc4f718344fb593401a5

Patch Set 1 #

Patch Set 2 : Add comments #

Total comments: 8

Patch Set 3 : Address comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -74 lines) Patch
M chrome/browser/android/vr_shell/ui_scene_manager.cc View 6 chunks +7 lines, -15 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.h View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 12 chunks +84 lines, -56 lines 2 comments Download

Messages

Total messages: 16 (7 generated)
mthiesse
PTAL
3 years, 7 months ago (2017-05-11 15:56:20 UTC) #2
cjgrant
https://codereview.chromium.org/2869273008/diff/20001/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2869273008/diff/20001/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode1117 chrome/browser/android/vr_shell/vr_shell_gl.cc:1117: bool draw_cursor) { draw_reticle (maybe elsewhere, based on your ...
3 years, 7 months ago (2017-05-11 17:21:52 UTC) #3
mthiesse
https://codereview.chromium.org/2869273008/diff/20001/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2869273008/diff/20001/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode1117 chrome/browser/android/vr_shell/vr_shell_gl.cc:1117: bool draw_cursor) { On 2017/05/11 17:21:52, cjgrant wrote: > ...
3 years, 7 months ago (2017-05-11 17:55:03 UTC) #4
mthiesse
https://codereview.chromium.org/2869273008/diff/20001/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2869273008/diff/20001/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode1165 chrome/browser/android/vr_shell/vr_shell_gl.cc:1165: vr_shell_renderer_->Flush(); On 2017/05/11 17:21:51, cjgrant wrote: > I assume ...
3 years, 7 months ago (2017-05-11 17:55:29 UTC) #5
cjgrant
lgtm Still wish we didn't have to care about draw phase for the reticle. Maybe ...
3 years, 7 months ago (2017-05-12 13:49:04 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/2869273008/60001
3 years, 7 months ago (2017-05-12 14:23:31 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:60001) as https://chromium.googlesource.com/chromium/src/+/39500a44e5e31f81001ddc4f718344fb593401a5
3 years, 7 months ago (2017-05-12 16:01:12 UTC) #13
acondor_
https://codereview.chromium.org/2869273008/diff/60001/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2869273008/diff/60001/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode1109 chrome/browser/android/vr_shell/vr_shell_gl.cc:1109: DrawLaser(view_proj_matrix); mthiesse, what was the reason for altering this ...
3 years, 7 months ago (2017-05-24 16:34:54 UTC) #15
mthiesse
3 years, 7 months ago (2017-05-24 17:37:08 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/2869273008/diff/60001/chrome/browser/android/...
File chrome/browser/android/vr_shell/vr_shell_gl.cc (right):

https://codereview.chromium.org/2869273008/diff/60001/chrome/browser/android/...
chrome/browser/android/vr_shell/vr_shell_gl.cc:1109:
DrawLaser(view_proj_matrix);
On 2017/05/24 16:34:54, acondor wrote:
> mthiesse, what was the reason for altering this order (just laser and
> controller). It draws odd this way.

Oh, I didn't mean to invert the order of these two, should be fine to reverse
the order again.

Powered by Google App Engine
This is Rietveld 408576698