|
|
Chromium Code Reviews|
Created:
3 years, 10 months ago by shaobo.yan Modified:
3 years, 10 months ago CC:
chromium-reviews, haraken, blink-reviews, feature-vr-reviews_chromium.org, hokein.wu_gmail.com Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionFix WebVR does not properly stop presenting if requestPresent rejects.
Directly call forceExitPresent won't stop
presenting correctly.
BUG=680209
Review-Url: https://codereview.chromium.org/2689563008
Cr-Commit-Position: refs/heads/master@{#451544}
Committed: https://chromium.googlesource.com/chromium/src/+/a8725caafe812944aa590f27e8711eab810bf1a1
Patch Set 1 #
Total comments: 2
Patch Set 2 : address comment #
Messages
Total messages: 21 (8 generated)
shaobo.yan@intel.com changed reviewers: + bajones@chromium.org, bsheedy@chromium.org, ddorwin@chromium.org
PTAL.
Description was changed from ========== Fix WebVR does not properly stop presenting if requestPresent rejects. Directly call forceExitPresent won't stop presenting correctly. BUG=680209 ========== to ========== Fix WebVR does not properly stop presenting if requestPresent rejects. Directly call forceExitPresent won't stop presenting correctly. BUG=680209 ==========
mthiesse@chromium.org changed reviewers: + mthiesse@chromium.org
https://codereview.chromium.org/2689563008/diff/1/third_party/WebKit/Source/m... File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): https://codereview.chromium.org/2689563008/diff/1/third_party/WebKit/Source/m... third_party/WebKit/Source/modules/vr/VRDisplay.cpp:254: if (m_isPresenting) { You should fix VRDisplay::forceExitPresent(), rather than fixing all of the callsites.
On 2017/02/13 15:33:34, mthiesse wrote: > https://codereview.chromium.org/2689563008/diff/1/third_party/WebKit/Source/m... > File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): > > https://codereview.chromium.org/2689563008/diff/1/third_party/WebKit/Source/m... > third_party/WebKit/Source/modules/vr/VRDisplay.cpp:254: if (m_isPresenting) { > You should fix VRDisplay::forceExitPresent(), rather than fixing all of the > callsites. I've considerd fix forceExitPresent(), But it seems this function is used to close the "fullscreen mode" VR.(especially with the comments here: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/vr/VRD...). If you're sure the function of this method could be extended, I'd be very happy to fix forceExitPresent. But I'd like to double check with you.
On 2017/02/14 00:57:31, shaobo.yan wrote: > On 2017/02/13 15:33:34, mthiesse wrote: > > > https://codereview.chromium.org/2689563008/diff/1/third_party/WebKit/Source/m... > > File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): > > > > > https://codereview.chromium.org/2689563008/diff/1/third_party/WebKit/Source/m... > > third_party/WebKit/Source/modules/vr/VRDisplay.cpp:254: if (m_isPresenting) { > > You should fix VRDisplay::forceExitPresent(), rather than fixing all of the > > callsites. > > I've considerd fix forceExitPresent(), But it seems this function is used to > close the "fullscreen mode" VR.(especially with the comments here: > https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/vr/VRD...). > If you're sure the function of this method could be extended, I'd be very happy > to fix forceExitPresent. But I'd like to double check with you. One more thing, the implementation of exitPresent https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/vr/VRD... is also one of the reason I concern about expanding forceExitPresent function yesterday. Because I understand it as a hint. If I understand wrong, pls correct me.
On 2017/02/13 15:33:34, mthiesse wrote: > https://codereview.chromium.org/2689563008/diff/1/third_party/WebKit/Source/m... > File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): > > https://codereview.chromium.org/2689563008/diff/1/third_party/WebKit/Source/m... > third_party/WebKit/Source/modules/vr/VRDisplay.cpp:254: if (m_isPresenting) { > You should fix VRDisplay::forceExitPresent(), rather than fixing all of the > callsites. Sorry. Just go through the code during launch and find I'm totally wrong. I'll update the patch. Thx for comments.
https://codereview.chromium.org/2689563008/diff/1/third_party/WebKit/Source/m... File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): https://codereview.chromium.org/2689563008/diff/1/third_party/WebKit/Source/m... third_party/WebKit/Source/modules/vr/VRDisplay.cpp:254: if (m_isPresenting) { On 2017/02/13 15:33:34, mthiesse wrote: > You should fix VRDisplay::forceExitPresent(), rather than fixing all of the > callsites. Done.
lgtm
The CQ bit was checked by shaobo.yan@intel.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by mthiesse@chromium.org
I don't have OWNERS here, you'll need to wait for bajones to review.
mthiesse@:thx bajones@ PTAL
LGTM
The CQ bit was checked by shaobo.yan@intel.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 20001, "attempt_start_ts": 1487551107670080,
"parent_rev": "f5c1ca2bcc7f2cecd48866670dd7f0ddf3c0f24c", "commit_rev":
"a8725caafe812944aa590f27e8711eab810bf1a1"}
Message was sent while issue was closed.
Description was changed from ========== Fix WebVR does not properly stop presenting if requestPresent rejects. Directly call forceExitPresent won't stop presenting correctly. BUG=680209 ========== to ========== Fix WebVR does not properly stop presenting if requestPresent rejects. Directly call forceExitPresent won't stop presenting correctly. BUG=680209 Review-Url: https://codereview.chromium.org/2689563008 Cr-Commit-Position: refs/heads/master@{#451544} Committed: https://chromium.googlesource.com/chromium/src/+/a8725caafe812944aa590f27e871... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/a8725caafe812944aa590f27e871... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
