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

Issue 2864603002: Provide callback to create mojo AndroidOverlays to AVDA. (Closed)

Created:
3 years, 7 months ago by liberato (no reviews please)
Modified:
3 years, 7 months ago
Reviewers:
watk, tguilbert, jbauman
CC:
chromium-reviews, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, alokp+watch_chromium.org, piman+watch_chromium.org, darin (slow to review), mlamouri+watch-media_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Provide callback to create mojo AndroidOverlays to AVDA. In order to create an overlay, AVDA must be able to talk to the AndroidOverlayProviderImpl mojo service in the browser. However, media/ doesn't have access to much that would let it look up the service by itself. This CL plumbs a callback for creating these overlays to AVDA from GpuChildThread. GpuChildThread has access to the mojo Connector object, which allows it to look up services in the browser process. The callback takes as input the routing token and a configuration struct, and returns the overlay. BUG=721201 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/2864603002 Cr-Commit-Position: refs/heads/master@{#471589} Committed: https://chromium.googlesource.com/chromium/src/+/441ca70d0885c3cefafce97b8f72922ee05111e7

Patch Set 1 #

Patch Set 2 : fixed include order #

Patch Set 3 : cleanup #

Patch Set 4 : fixed gn #

Patch Set 5 : rebased #

Patch Set 6 : fixed unit tests #

Patch Set 7 : fixed tests #

Total comments: 2

Patch Set 8 : started sending connector to media gpu channel #

Patch Set 9 : moved connector to vda factory #

Patch Set 10 : cleanup #

Patch Set 11 : fixed deps #

Total comments: 2

Patch Set 12 : Revert to callback from gpu_child_thread. #

Total comments: 2

Patch Set 13 : cl feedback #

Patch Set 14 : added comment about static-ness #

Patch Set 15 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -75 lines) Patch
M content/gpu/BUILD.gn View 1 2 3 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +19 lines, -0 lines 0 comments Download
M media/base/android_overlay_mojo_factory.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/gpu/android_video_decode_accelerator.h View 1 2 3 4 3 chunks +5 lines, -0 lines 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 2 chunks +2 lines, -0 lines 0 comments Download
M media/gpu/android_video_decode_accelerator_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/gpu_video_decode_accelerator_factory.h View 1 9 10 11 4 chunks +6 lines, -2 lines 0 comments Download
M media/gpu/gpu_video_decode_accelerator_factory.cc View 1 9 10 11 4 chunks +9 lines, -6 lines 0 comments Download
M media/gpu/ipc/service/gpu_video_decode_accelerator.h View 1 2 9 10 11 3 chunks +6 lines, -1 line 0 comments Download
M media/gpu/ipc/service/gpu_video_decode_accelerator.cc View 1 2 9 10 11 3 chunks +4 lines, -2 lines 0 comments Download
M media/gpu/ipc/service/media_gpu_channel.h View 1 2 8 9 10 11 3 chunks +4 lines, -1 line 0 comments Download
M media/gpu/ipc/service/media_gpu_channel.cc View 1 2 8 9 10 11 2 chunks +7 lines, -4 lines 0 comments Download
M media/gpu/ipc/service/media_gpu_channel_manager.h View 1 2 8 9 10 11 3 chunks +4 lines, -0 lines 0 comments Download
M media/gpu/ipc/service/media_gpu_channel_manager.cc View 1 2 8 9 10 11 2 chunks +6 lines, -1 line 0 comments Download
M media/mojo/clients/BUILD.gn View 1 2 3 4 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M media/mojo/clients/mojo_android_overlay.h View 2 chunks +3 lines, -12 lines 0 comments Download
M media/mojo/clients/mojo_android_overlay.cc View 1 2 3 4 2 chunks +4 lines, -10 lines 0 comments Download
M media/mojo/clients/mojo_android_overlay_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -34 lines 0 comments Download

Messages

Total messages: 78 (59 generated)
liberato (no reviews please)
This needs some cleanup, but I'm interested in what you think of this approach. The ...
3 years, 7 months ago (2017-05-10 20:11:51 UTC) #4
tguilbert
I have no objection, but I also have the least amount of experience with AVDA. ...
3 years, 7 months ago (2017-05-10 23:52:52 UTC) #5
watk
Not quite sure what the goal of this CL is, sorry. Can't follow the description.
3 years, 7 months ago (2017-05-11 00:20:45 UTC) #6
watk
On 2017/05/11 00:20:45, watk wrote: > Not quite sure what the goal of this CL ...
3 years, 7 months ago (2017-05-11 00:21:06 UTC) #7
liberato (no reviews please)
hi all jbauman: PTAL @ content/gpu watk, tguilbert: PTAL @ media/ incidentally, this sends a ...
3 years, 7 months ago (2017-05-11 17:08:51 UTC) #19
tguilbert
media/ LGTM. NIT: In the description: s/AndroidOverlayProvideImpl/AndroidOverlayProviderImpl
3 years, 7 months ago (2017-05-11 21:30:51 UTC) #29
watk
Seems like binding the interface in GpuVideoDecodeAccelerator would certainly reduce the plumbing. MCVD will want ...
3 years, 7 months ago (2017-05-11 22:27:01 UTC) #31
liberato (no reviews please)
On 2017/05/11 22:27:01, watk wrote: > Seems like binding the interface in GpuVideoDecodeAccelerator would certainly ...
3 years, 7 months ago (2017-05-12 18:14:28 UTC) #40
liberato (no reviews please)
https://codereview.chromium.org/2864603002/diff/120001/content/gpu/gpu_child_thread.h File content/gpu/gpu_child_thread.h (right): https://codereview.chromium.org/2864603002/diff/120001/content/gpu/gpu_child_thread.h#newcode120 content/gpu/gpu_child_thread.h:120: std::unique_ptr<media::AndroidOverlay> OverlayFactory( On 2017/05/11 22:27:00, watk wrote: > CreateAndroidOverlay()? ...
3 years, 7 months ago (2017-05-12 18:14:44 UTC) #41
watk
Oh I was thinking you could call GetConnector() directly from GVDA to reduce the plumbing. ...
3 years, 7 months ago (2017-05-12 19:13:54 UTC) #48
jbauman
lgtm with one nit. https://codereview.chromium.org/2864603002/diff/220001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://codereview.chromium.org/2864603002/diff/220001/content/gpu/gpu_child_thread.cc#newcode315 content/gpu/gpu_child_thread.cc:315: const base::UnguessableToken& routing_token, Could you ...
3 years, 7 months ago (2017-05-12 20:57:39 UTC) #53
liberato (no reviews please)
https://codereview.chromium.org/2864603002/diff/200001/content/gpu/gpu_child_thread.h File content/gpu/gpu_child_thread.h (right): https://codereview.chromium.org/2864603002/diff/200001/content/gpu/gpu_child_thread.h#newcode32 content/gpu/gpu_child_thread.h:32: #include "media/base/android_overlay_mojo_factory.h" On 2017/05/12 19:13:54, watk wrote: > can ...
3 years, 7 months ago (2017-05-12 20:57:45 UTC) #54
liberato (no reviews please)
thanks for the feedback everybody. -fl https://codereview.chromium.org/2864603002/diff/220001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://codereview.chromium.org/2864603002/diff/220001/content/gpu/gpu_child_thread.cc#newcode315 content/gpu/gpu_child_thread.cc:315: const base::UnguessableToken& routing_token, ...
3 years, 7 months ago (2017-05-12 21:10:27 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/2864603002/260001
3 years, 7 months ago (2017-05-12 21:11:46 UTC) #63
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/453469)
3 years, 7 months ago (2017-05-12 23:13:01 UTC) #65
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/2864603002/260001
3 years, 7 months ago (2017-05-13 06:25:41 UTC) #67
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/453835)
3 years, 7 months ago (2017-05-13 06:33:15 UTC) #69
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/2864603002/180002
3 years, 7 months ago (2017-05-13 07:03:03 UTC) #75
commit-bot: I haz the power
3 years, 7 months ago (2017-05-13 16:50:54 UTC) #78
Message was sent while issue was closed.
Committed patchset #15 (id:180002) as
https://chromium.googlesource.com/chromium/src/+/441ca70d0885c3cefafce97b8f72...

Powered by Google App Engine
This is Rietveld 408576698