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

Issue 2873493004: [Media Controls] Prevent flicker when enter/exit fullscreen (Closed)

Created:
3 years, 7 months ago by johnme
Modified:
3 years, 7 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, haraken, mlamouri+watch-blink_chromium.org, posciak+watch_chromium.org, nessy, Srirama
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Controls] Prevent flicker when enter/exit fullscreen Previously, entering/exiting fullscreen whilst the media controls are hidden due to inactivity would cause the media controls to briefly show then almost immediately hide again, resulting in an ugly flicker. They were shown by HTMLMediaElement::UpdateControlsVisibility (called from HTMLMediaElement::Did{Enter,Exit}Fullscreen) and then hidden again by MediaControlsImpl::OnTimeUpdate since ShouldHideMediaControls() returns true. (This was often masked by the fact that clicking the fullscreen button with a mouse results in the mouse hovering over the media controls at the start of the fullscreen transition, in which case it's ok to show the media controls. It became particularly noticeable with the recent video-rotate-to-fullscreen feature, which enters/exits fullscreen without interacting with the media controls, but it can be reproduced without that feature as well). This patch renames MediaControls::Show to MaybeShow and makes it only show the controls if they won't soon be hidden again. BUG=717520 NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2873493004 Cr-Commit-Position: refs/heads/master@{#472180} Committed: https://chromium.googlesource.com/chromium/src/+/1fb662149d40ec4b4a19d984007528ea0b8798e3

Patch Set 1 #

Patch Set 2 : 2-space indent for tests #

Patch Set 3 : Use test-25fps.mp4 instead of counting.mp4 #

Total comments: 8

Patch Set 4 : Try going back to eventSender.mouseMoveTo #

Patch Set 5 : Add to SlowTests #

Patch Set 6 : Update SlowTests bug number #

Patch Set 7 : Add virtual/new-remote-playback-pipeline variants to SlowTests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -54 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-blink-features=LayoutNG View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/SlowTests View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html View 1 2 3 1 chunk +85 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-without-hovering-doesnt-show-controls.html View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/media/video-controls-visible-exiting-fullscreen.html View 1 chunk +0 lines, -45 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/media/MediaControls.h View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp View 1 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsImplTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (11 generated)
johnme
3 years, 7 months ago (2017-05-09 15:53:29 UTC) #2
mlamouri (slow - plz ping)
lgtm with the test files using a 2 space indentation.
3 years, 7 months ago (2017-05-09 17:35:46 UTC) #3
johnme
On 2017/05/09 17:35:46, mlamouri wrote: > lgtm with the test files using a 2 space ...
3 years, 7 months ago (2017-05-09 17:52:46 UTC) #4
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/2873493004/20001
3 years, 7 months ago (2017-05-09 17:54:07 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/439726)
3 years, 7 months ago (2017-05-09 19:48:16 UTC) #9
mlamouri (slow - plz ping)
https://codereview.chromium.org/2873493004/diff/40001/third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html File third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html (right): https://codereview.chromium.org/2873493004/diff/40001/third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html#newcode22 third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html:22: clickAtCoordinates(...mediaControlsButtonCoordinates(video, "play-button")); What's the "..." https://codereview.chromium.org/2873493004/diff/40001/third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html#newcode33 third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html:33: chrome.gpuBenchmarking.pointerActionSequence([{ Did ...
3 years, 7 months ago (2017-05-15 14:42:16 UTC) #10
johnme
https://codereview.chromium.org/2873493004/diff/40001/third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html File third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html (right): https://codereview.chromium.org/2873493004/diff/40001/third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html#newcode22 third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html:22: clickAtCoordinates(...mediaControlsButtonCoordinates(video, "play-button")); On 2017/05/15 14:42:15, mlamouri wrote: > What's ...
3 years, 7 months ago (2017-05-15 14:56:03 UTC) #11
mlamouri (slow - plz ping)
https://codereview.chromium.org/2873493004/diff/40001/third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html File third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html (right): https://codereview.chromium.org/2873493004/diff/40001/third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html#newcode22 third_party/WebKit/LayoutTests/media/controls/video-enter-exit-fullscreen-while-hovering-shows-controls.html:22: clickAtCoordinates(...mediaControlsButtonCoordinates(video, "play-button")); On 2017/05/15 at 14:56:02, johnme wrote: > ...
3 years, 7 months ago (2017-05-15 15:17:51 UTC) #12
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/2873493004/100001
3 years, 7 months ago (2017-05-16 13:43:27 UTC) #16
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/2873493004/120001
3 years, 7 months ago (2017-05-16 14:55:24 UTC) #19
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 19:28:56 UTC) #22
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/1fb662149d40ec4b4a19d9840075...

Powered by Google App Engine
This is Rietveld 408576698