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

Issue 1907753002: Make the video layer contents visible in OverlayFullscreenVideo mode (Closed)

Created:
4 years, 8 months ago by watk
Modified:
4 years, 7 months ago
Reviewers:
chrishtr, qinmin
CC:
avayvod+watch_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, DaleCurtis, darin-cc_chromium.org, eae+blinkwatch, feature-media-reviews_chromium.org, jam, jchaffraix+rendering, leviw+renderwatch, mcasas+watch+vc_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-media_chromium.org, mlamouri+watch-content_chromium.org, pdr+renderingwatchlist_chromium.org, posciak+watch_chromium.org, szager+layoutwatch_chromium.org, trchen_chromum.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make the video layer contents visible in OverlayFullscreenVideo mode Previously, in OverlayFullscreenVideo mode, the video GraphicsLayer contents was set to invisible because the video frames were rendered directly to an underlay without involving the cc::VideoLayer. With this change the video layer contents is changed to visible to give WebMediaPlayer implementations more control. Previously only WebMediaPlayerAndroid needed to use OverlayFullscreenVideo mode, but a future CL will enable it for WebMediaPlayerImpl too. WMPA and WMPI have different requirements for OverlayFullscreenVideo, but they both use the fact that the LayerTreeView background is made transparent. WMPA will continue to make the whole LayerTreeView transparent, but it now does so by setting the layer's current VideoFrame to a transparent frame. WMPI will not make the video frame transparent, but will let it be composited as usual. With WMPI we need to composite the frames because: a) In hardware underlay mode the ui compositor is responsible for timing the release of video frames to the underlay surface by scheduling them as overlay planes. So we need the ui compositor to see every new video frame. b) With WMPI we can have software decoded frames for which we currently have no way of rendering to the underlay surface. As a result, they will be rendered by the compositor to the main surface. BUG=603521 Committed: https://crrev.com/e779e5a0f7e8bab98dab472cdbb29a850294a34b Cr-Commit-Position: refs/heads/master@{#391728}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase #

Patch Set 3 : Update pixel expectations; now include the video frame. #

Total comments: 1

Patch Set 4 : Rebase #

Patch Set 5 : Clarified comment #

Messages

Total messages: 24 (8 generated)
watk
PTAL. I still have to get the layout tests passing. Three of them now fail ...
4 years, 8 months ago (2016-04-21 00:38:30 UTC) #2
qinmin
https://codereview.chromium.org/1907753002/diff/1/content/renderer/media/android/webmediaplayer_android.h File content/renderer/media/android/webmediaplayer_android.h (right): https://codereview.chromium.org/1907753002/diff/1/content/renderer/media/android/webmediaplayer_android.h#newcode351 content/renderer/media/android/webmediaplayer_android.h:351: scoped_refptr<media::VideoFrame> fullscreen_frame_; why cannot we just use current_frame_?
4 years, 8 months ago (2016-04-21 16:33:11 UTC) #3
watk
https://codereview.chromium.org/1907753002/diff/1/content/renderer/media/android/webmediaplayer_android.h File content/renderer/media/android/webmediaplayer_android.h (right): https://codereview.chromium.org/1907753002/diff/1/content/renderer/media/android/webmediaplayer_android.h#newcode351 content/renderer/media/android/webmediaplayer_android.h:351: scoped_refptr<media::VideoFrame> fullscreen_frame_; On 2016/04/21 16:33:11, qinmin wrote: > why ...
4 years, 8 months ago (2016-04-21 18:56:28 UTC) #4
watk
Friendly ping. trchen@ is there any particular blink owner you would suggest for this?
4 years, 8 months ago (2016-04-25 20:00:28 UTC) #5
watk
ping
4 years, 7 months ago (2016-04-26 22:51:51 UTC) #7
watk
+chrishtr: PTAL at CompositedLayerMapping
4 years, 7 months ago (2016-04-26 22:58:00 UTC) #9
qinmin
webmediaplayer_android change lgtm
4 years, 7 months ago (2016-04-26 23:38:22 UTC) #10
watk
Friendly ping chrishtr
4 years, 7 months ago (2016-04-28 17:55:37 UTC) #11
watk
Friendly ping chrishtr
4 years, 7 months ago (2016-04-28 17:55:39 UTC) #12
watk
ping again
4 years, 7 months ago (2016-04-29 23:39:58 UTC) #13
chrishtr
Why do you only need to change WebMediaPlayerAndroid? The CL description seems to imply the ...
4 years, 7 months ago (2016-05-03 16:31:04 UTC) #14
watk
message: On 2016/05/03 16:31:04, chrishtr wrote: > Why do you only need to change WebMediaPlayerAndroid? ...
4 years, 7 months ago (2016-05-03 19:27:20 UTC) #15
chrishtr
lgtm
4 years, 7 months ago (2016-05-04 23:13:56 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907753002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907753002/100001
4 years, 7 months ago (2016-05-04 23:38:04 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 7 months ago (2016-05-05 02:02:40 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 02:03:47 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e779e5a0f7e8bab98dab472cdbb29a850294a34b
Cr-Commit-Position: refs/heads/master@{#391728}

Powered by Google App Engine
This is Rietveld 408576698