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

Issue 2849043002: Send AndroidOverlay routing token from WMPI to AVDA. (Closed)

Created:
3 years, 7 months ago by liberato (no reviews please)
Modified:
3 years, 7 months ago
CC:
apacible+watch_chromium.org, avayvod+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, erickung+watch_chromium.org, feature-media-reviews_chromium.org, jam, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-media_chromium.org, nasko+codewatch_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Send AndroidOverlay routing token from WMPI to AVDA. This CL makes WMPI mirror the CVV surface ID logic with routing tokens for AndroidOverlay. The routing token is sent to AVDA, which does nothing with it. This CL also splits the existing RequestSurfaceCB into two separate callbacks. RequestSurfaceCB remains unchanged, providing a CVV id. This CL adds Request/Provide OverlayInfoCB to send the CVV id and/or the routing token. Most existing instances of R/P SurfaceCB are now R/P OverlayInfoCB instead, since everything from AVDA up to WMPI really wants whatever info it needs to create overlays. BUG=719693 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2849043002 Cr-Commit-Position: refs/heads/master@{#472369} Committed: https://chromium.googlesource.com/chromium/src/+/2ff93adf7ed746c0e945c250e52b8d30adfbf719

Patch Set 1 #

Patch Set 2 : send routing token when it arrives #

Patch Set 3 : comments #

Patch Set 4 : more base::Optional, added RequestOverlayInfoCB #

Patch Set 5 : stopped keeping routing token all the time #

Patch Set 6 : removed some unneeded changes #

Patch Set 7 : handles cases without routing token #

Patch Set 8 : rebased. #

Patch Set 9 : rebased again. #

Patch Set 10 : maybe fixed cast #

Patch Set 11 : maybe fixed macos #

Total comments: 8

Patch Set 12 : cl feedback #

Patch Set 13 : rebased #

Patch Set 14 : rebased, fixed tests #

Patch Set 15 : via webmediaplayer_impl.cc #

Patch Set 16 : merged HaveOverlayInfo and SendOverlayInfo #

Total comments: 4

Patch Set 17 : cl feedback #

Patch Set 18 : rebased #

Patch Set 19 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -100 lines) Patch
M chromecast/media/service/cast_mojo_media_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/media/android/media_player_renderer_client_factory.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/android/media_player_renderer_client_factory.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +5 lines, -3 lines 0 comments Download
M media/base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M media/base/media_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M media/base/media_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download
A media/base/overlay_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +24 lines, -0 lines 0 comments Download
M media/base/renderer_factory.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/renderer_factory_selector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M media/base/routing_token_callback.h View 1 chunk +5 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +46 lines, -11 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 7 chunks +113 lines, -29 lines 0 comments Download
M media/blink/webmediaplayer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_params.h View 4 chunks +7 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_params.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M media/filters/gpu_video_decoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +11 lines, -6 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 3 4 5 6 7 5 chunks +25 lines, -15 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -1 line 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +7 lines, -2 lines 0 comments Download
M media/gpu/ipc/client/gpu_video_decode_accelerator_host.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M media/gpu/ipc/common/media_messages.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M media/gpu/ipc/service/gpu_video_decode_accelerator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -1 line 0 comments Download
M media/gpu/ipc/service/gpu_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -2 lines 0 comments Download
M media/mojo/clients/mojo_renderer_factory.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/clients/mojo_renderer_factory.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/services/interface_factory_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M media/remoting/courier_renderer_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M media/remoting/courier_renderer_factory.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M media/renderers/default_renderer_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -2 lines 0 comments Download
M media/renderers/default_renderer_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +5 lines, -5 lines 0 comments Download
M media/video/video_decode_accelerator.h View 1 2 3 3 chunks +11 lines, -1 line 0 comments Download
M media/video/video_decode_accelerator.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 65 (46 generated)
liberato (no reviews please)
here's a mostly-plumbing CL to get a routing token to AVDA. the important, non-plumbing, bit ...
3 years, 7 months ago (2017-05-08 20:51:58 UTC) #7
tguilbert
Some nits. liberato@ do you foresee adding a lot more code into WMPI? My only ...
3 years, 7 months ago (2017-05-08 23:10:29 UTC) #22
liberato (no reviews please)
thanks for the feedback. WMPI: i don't expect too many more changes, but this definitely ...
3 years, 7 months ago (2017-05-09 16:55:37 UTC) #25
watk
Sounds like you're going to try another approach? I'll hold off until that one then.
3 years, 7 months ago (2017-05-09 17:26:26 UTC) #28
liberato (no reviews please)
On 2017/05/09 17:26:26, watk wrote: > Sounds like you're going to try another approach? I'll ...
3 years, 7 months ago (2017-05-09 17:29:20 UTC) #29
watk
np at all On Tue, May 9, 2017 at 10:29 AM, <liberato@chromium.org> wrote: > On ...
3 years, 7 months ago (2017-05-09 17:30:40 UTC) #30
liberato (no reviews please)
On 2017/05/09 17:30:40, watk wrote: > np at all > > On Tue, May 9, ...
3 years, 7 months ago (2017-05-11 22:12:48 UTC) #36
tguilbert
LGTM https://codereview.chromium.org/2849043002/diff/300001/media/base/media_switches.h File media/base/media_switches.h (right): https://codereview.chromium.org/2849043002/diff/300001/media/base/media_switches.h#newcode118 media/base/media_switches.h:118: MEDIA_EXPORT extern const base::Feature kAndroidMediaPlayerRenderer; watk@ pointed out ...
3 years, 7 months ago (2017-05-12 21:11:11 UTC) #37
liberato (no reviews please)
https://codereview.chromium.org/2849043002/diff/300001/media/base/media_switches.h File media/base/media_switches.h (right): https://codereview.chromium.org/2849043002/diff/300001/media/base/media_switches.h#newcode118 media/base/media_switches.h:118: MEDIA_EXPORT extern const base::Feature kAndroidMediaPlayerRenderer; On 2017/05/12 21:11:11, tguilbert ...
3 years, 7 months ago (2017-05-12 21:42:50 UTC) #42
liberato (no reviews please)
hi all aelias: PTAL @ render_frame_impl . nasko: PTAL @ media/gpu/ipc . alokp: PTAL @ ...
3 years, 7 months ago (2017-05-12 22:23:42 UTC) #46
alokp
chromecast/ lgtm
3 years, 7 months ago (2017-05-12 22:42:51 UTC) #47
liberato (no reviews please)
hi all kenrb: PTAL @ media/gpu/ipc (swapping out nasko@ since he's listed as 'out'). thanks ...
3 years, 7 months ago (2017-05-16 20:39:58 UTC) #52
kenrb
ipc lgtm
3 years, 7 months ago (2017-05-16 20:50:41 UTC) #53
liberato (no reviews please)
aelias: i entirely forgot to mention why i added you to this review a few ...
3 years, 7 months ago (2017-05-16 21:10:11 UTC) #54
aelias_OOO_until_Jul13
render_frame_impl lgtm
3 years, 7 months ago (2017-05-16 21:51:12 UTC) #55
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/2849043002/360001
3 years, 7 months ago (2017-05-16 21:58:25 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/456530)
3 years, 7 months ago (2017-05-16 23:40:50 UTC) #60
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/2849043002/360001
3 years, 7 months ago (2017-05-17 05:47:11 UTC) #62
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 07:28:39 UTC) #65
Message was sent while issue was closed.
Committed patchset #19 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/2ff93adf7ed746c0e945c250e52b...

Powered by Google App Engine
This is Rietveld 408576698