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

Issue 1254613003: Let the WebMediaPlayer decide whether to use overlay video. (Closed)

Created:
5 years, 5 months ago by watk
Modified:
5 years, 4 months ago
CC:
blink-reviews, pdr+renderingwatchlist_chromium.org, zoltan1, mlamouri+watch-blink_chromium.org, szager+layoutwatch_chromium.org, eae+blinkwatch, leviw+renderwatch, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, blink-reviews-rendering, jchaffraix+rendering, philipj_slow
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Let the WebMediaPlayer decide whether to use overlay video. Previously, the runtime feature "overlayFullscreenVideoEnabled" was used to decide whether to do fullscreen video overlay. This was set on Android and for layout tests. Now the WebMediaPlayer decides whether overlay fullscreen mode will be used. This enables support for WebMediaPlayerImpl on Android, which will use the standard composited fullscreen path. The runtime feature is renamed to forceOverlayFullscreenVideo and retained as an override for use in layout tests. BUG=511376 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200005

Patch Set 1 : Ready to review #

Patch Set 2 : Rebase only #

Patch Set 3 : Fixes after rebase #

Total comments: 4

Patch Set 4 : trchen@'s comments #

Total comments: 6

Patch Set 5 : Rebase only #

Patch Set 6 : Address Xianzhu's Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -57 lines) Patch
M Source/core/html/HTMLMediaElement.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 5 chunks +11 lines, -4 lines 0 comments Download
M Source/core/html/HTMLVideoElement.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLVideoElement.cpp View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutVideo.cpp View 1 2 3 4 5 1 chunk +3 lines, -5 lines 0 comments Download
M Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/layout/compositing/DeprecatedPaintLayerCompositor.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp View 1 2 3 4 5 1 chunk +1 line, -5 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M Source/web/FullscreenController.cpp View 1 2 3 4 5 1 chunk +3 lines, -5 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 1 chunk +0 lines, -31 lines 0 comments Download
M public/platform/WebMediaPlayer.h View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (11 generated)
watk
Hey trchen@, this is not ready to submit, so no need to do a full ...
5 years, 5 months ago (2015-07-24 21:31:36 UTC) #2
watk
Hey trchen@, I've updated the CL. PTAL! I tested this with the virtual/android/fullscreen layout tests ...
5 years, 4 months ago (2015-07-29 00:36:44 UTC) #5
watk
ping trchen@. I rebased on top of the CL that removed WebMediaPlayerClientImpl.
5 years, 4 months ago (2015-07-30 21:03:34 UTC) #9
trchen
Overall the CL looks legit to me. Does it handle the case that the video ...
5 years, 4 months ago (2015-07-30 21:29:21 UTC) #10
watk
> https://codereview.chromium.org/1254613003/diff/140001/Source/core/html/HTMLVideoElement.cpp#newcode254 > Source/core/html/HTMLVideoElement.cpp:254: || (webMediaPlayer() && > webMediaPlayer()->supportsOverlayFullscreenVideo())); > This condition feels weird to ...
5 years, 4 months ago (2015-07-30 21:45:49 UTC) #11
trchen
On 2015/07/30 21:45:49, watk wrote: > > > https://codereview.chromium.org/1254613003/diff/140001/Source/core/html/HTMLVideoElement.cpp#newcode254 > > Source/core/html/HTMLVideoElement.cpp:254: || (webMediaPlayer() && ...
5 years, 4 months ago (2015-07-30 21:53:03 UTC) #12
watk
wangxianzhu@chromium.org: Please review changes in Source/core
5 years, 4 months ago (2015-08-03 21:35:55 UTC) #15
watk
Thanks trchen@, I've addressed your comments. I removed the existing unit test because it was ...
5 years, 4 months ago (2015-08-03 21:47:44 UTC) #16
Xianzhu
On 2015/08/03 21:35:55, watk wrote: > mailto:wangxianzhu@chromium.org: Please review changes in Source/core I'm not familiar ...
5 years, 4 months ago (2015-08-03 21:51:29 UTC) #17
trchen
esprehn@ and abarth@ did most of the reviews. Elliott is OOO till next week, and ...
5 years, 4 months ago (2015-08-03 22:28:33 UTC) #18
Xianzhu
https://codereview.chromium.org/1254613003/diff/180001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/1254613003/diff/180001/Source/core/html/HTMLMediaElement.cpp#newcode3209 Source/core/html/HTMLMediaElement.cpp:3209: if ((m_inOverlayFullscreenVideo = useOverlayFullscreenVideo())) Assignment in 'if' is error-prone. ...
5 years, 4 months ago (2015-08-03 22:39:02 UTC) #19
Xianzhu
https://codereview.chromium.org/1254613003/diff/180001/Source/web/tests/WebFrameTest.cpp File Source/web/tests/WebFrameTest.cpp (left): https://codereview.chromium.org/1254613003/diff/180001/Source/web/tests/WebFrameTest.cpp#oldcode6561 Source/web/tests/WebFrameTest.cpp:6561: TEST_F(WebFrameTest, FullscreenMediaStreamVideo) On 2015/08/03 22:39:02, Xianzhu wrote: > Is ...
5 years, 4 months ago (2015-08-03 22:40:07 UTC) #20
watk
Thanks Xianzhu https://codereview.chromium.org/1254613003/diff/180001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/1254613003/diff/180001/Source/core/html/HTMLMediaElement.cpp#newcode3209 Source/core/html/HTMLMediaElement.cpp:3209: if ((m_inOverlayFullscreenVideo = useOverlayFullscreenVideo())) On 2015/08/03 22:39:02, ...
5 years, 4 months ago (2015-08-03 23:36:48 UTC) #22
Xianzhu
lgtm lgtm
5 years, 4 months ago (2015-08-03 23:46:03 UTC) #23
watk
eroman@chromium.org: Please review changes in RuntimeEnabledFeatures.in japhet@chromium.org: Please review changes in Source/web/FullscreenController.cpp and public/platform/WebMediaPlayer.h
5 years, 4 months ago (2015-08-03 23:46:59 UTC) #25
Nate Chapin
lgtm
5 years, 4 months ago (2015-08-04 16:49:19 UTC) #26
eroman
lgtm
5 years, 4 months ago (2015-08-04 19:10:45 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1254613003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1254613003/240001
5 years, 4 months ago (2015-08-04 23:39:18 UTC) #29
commit-bot: I haz the power
5 years, 4 months ago (2015-08-04 23:43:29 UTC) #30
Message was sent while issue was closed.
Committed patchset #6 (id:240001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200005

Powered by Google App Engine
This is Rietveld 408576698