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

Issue 2848973002: [Mojo Video Capture] Implement a VideoCaptureProvider using the Mojo service (part 1) (Closed)

Created:
3 years, 7 months ago by chfremer
Modified:
3 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, alokp+watch_chromium.org, chfremer+watch_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, miu+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, xjz+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mojo Video Capture] Implement a VideoCaptureProvider using the Mojo service (part 1) This CL is part of the Mojo Video Capture work. For the bigger picture, see [1] CL24_part1. Goal of CL24: The interface content::VideoCaptureProvider currently has one implementation called InProcessVideoCaptureProvider, which is essentially a factory for the legacy in-process video capture stack. This CL adds a second implementation called MojoServiceVideoCaptureProvider which is essentially a wrapper for connecting to and communicating with the new video capture service. Changes in part1: * Add class MojoServiceVideoCaptureProvider * Add skeletons for classes MojoServiceVideoCaptureDeviceLauncher and MojoServiceLaunchedVideoCaptureDevice * Introduce a build flag enable_mojo_video_capture to prevent the new and incomplete code from going into builds. BUG=584797 TEST= service_unittests --gtest_filter="*Video*" content_unittests --gtest_filter="*Video*" content_browsertests --gtest_filter="VideoCaptureBrowserTest.*" [1] https://docs.google.com/a/chromium.org/document/d/1Qw7rw1AJy0QHXjha36jZNiEuxsxWslJ_X-zpOhijvI8/edit?usp=sharing Review-Url: https://codereview.chromium.org/2848973002 Cr-Commit-Position: refs/heads/master@{#469380} Committed: https://chromium.googlesource.com/chromium/src/+/954d0aca7b6fa688b7e963c57475a4ef747384bb

Patch Set 1 #

Total comments: 6

Patch Set 2 : Incorporate suggestions from PatchSet 1 #

Patch Set 3 : Rename MojoServiceVideoCapture* to ServiceVideoCapture* #

Total comments: 12

Patch Set 4 : Incorporated rockot@'s suggestions from PatchSet 3 #

Patch Set 5 : Incorporated mcasas@'s suggestions from PatchSet 3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -0 lines) Patch
M content/browser/BUILD.gn View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/in_process_video_capture_provider.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/in_process_video_capture_provider.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/mock_video_capture_provider.h View 1 chunk +1 line, -0 lines 0 comments Download
A content/browser/renderer_host/media/service_launched_video_capture_device.h View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/service_launched_video_capture_device.cc View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/service_video_capture_device_launcher.h View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/service_video_capture_device_launcher.cc View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/service_video_capture_provider.h View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/service_video_capture_provider.cc View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_provider.h View 1 chunk +2 lines, -0 lines 0 comments Download
M services/video_capture/public/cpp/receiver_media_to_mojo_adapter.h View 1 chunk +2 lines, -0 lines 0 comments Download
M services/video_capture/public/cpp/receiver_media_to_mojo_adapter.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 32 (13 generated)
chfremer
mcasas@: PTAL rockot@: PTAL service connection parts in mojo_service_video_capture_provider.cc miu@, emircan@: FYI
3 years, 7 months ago (2017-04-28 19:19:50 UTC) #5
chfremer
On 2017/04/28 19:19:50, chfremer wrote: > mcasas@: PTAL > rockot@: PTAL service connection parts in ...
3 years, 7 months ago (2017-05-02 00:17:11 UTC) #8
mcasas
looking good, a few comments. https://codereview.chromium.org/2848973002/diff/20001/content/browser/renderer_host/media/mojo_service_launched_video_capture_device.h File content/browser/renderer_host/media/mojo_service_launched_video_capture_device.h (right): https://codereview.chromium.org/2848973002/diff/20001/content/browser/renderer_host/media/mojo_service_launched_video_capture_device.h#newcode15 content/browser/renderer_host/media/mojo_service_launched_video_capture_device.h:15: class MojoServiceLaunchedVideoCaptureDevice Suggestion: no ...
3 years, 7 months ago (2017-05-02 01:06:23 UTC) #9
chfremer
PTAL https://codereview.chromium.org/2848973002/diff/20001/content/browser/renderer_host/media/mojo_service_launched_video_capture_device.h File content/browser/renderer_host/media/mojo_service_launched_video_capture_device.h (right): https://codereview.chromium.org/2848973002/diff/20001/content/browser/renderer_host/media/mojo_service_launched_video_capture_device.h#newcode15 content/browser/renderer_host/media/mojo_service_launched_video_capture_device.h:15: class MojoServiceLaunchedVideoCaptureDevice On 2017/05/02 01:06:23, mcasas wrote: > ...
3 years, 7 months ago (2017-05-02 16:36:42 UTC) #10
Ken Rockot(use gerrit already)
On 2017/05/02 at 16:36:42, chfremer wrote: > PTAL > > https://codereview.chromium.org/2848973002/diff/20001/content/browser/renderer_host/media/mojo_service_launched_video_capture_device.h > File content/browser/renderer_host/media/mojo_service_launched_video_capture_device.h (right): ...
3 years, 7 months ago (2017-05-03 16:37:30 UTC) #11
chfremer
PTAL I renamed MojoServiceVideoCapture* to ServiceVideoCapture*.
3 years, 7 months ago (2017-05-03 17:10:05 UTC) #12
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2848973002/diff/60001/content/browser/renderer_host/media/service_video_capture_provider.cc File content/browser/renderer_host/media/service_video_capture_provider.cc (right): https://codereview.chromium.org/2848973002/diff/60001/content/browser/renderer_host/media/service_video_capture_provider.cc#newcode66 content/browser/renderer_host/media/service_video_capture_provider.cc:66: BindToBrowserConnector(std::move(connector_request)); Can ServiceVideoCaptureProvider actually be created on arbitrary threads ...
3 years, 7 months ago (2017-05-03 17:59:46 UTC) #13
chfremer
https://codereview.chromium.org/2848973002/diff/60001/content/browser/renderer_host/media/service_video_capture_provider.cc File content/browser/renderer_host/media/service_video_capture_provider.cc (right): https://codereview.chromium.org/2848973002/diff/60001/content/browser/renderer_host/media/service_video_capture_provider.cc#newcode66 content/browser/renderer_host/media/service_video_capture_provider.cc:66: BindToBrowserConnector(std::move(connector_request)); On 2017/05/03 17:59:46, Ken Rockot wrote: > Can ...
3 years, 7 months ago (2017-05-03 18:29:09 UTC) #14
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2848973002/diff/60001/content/browser/renderer_host/media/service_video_capture_provider.cc File content/browser/renderer_host/media/service_video_capture_provider.cc (right): https://codereview.chromium.org/2848973002/diff/60001/content/browser/renderer_host/media/service_video_capture_provider.cc#newcode66 content/browser/renderer_host/media/service_video_capture_provider.cc:66: BindToBrowserConnector(std::move(connector_request)); On 2017/05/03 at 18:29:09, chfremer wrote: > On ...
3 years, 7 months ago (2017-05-03 18:32:19 UTC) #15
mcasas
non-mojo parts lgtm % a few comments https://codereview.chromium.org/2848973002/diff/60001/content/browser/renderer_host/media/service_launched_video_capture_device.h File content/browser/renderer_host/media/service_launched_video_capture_device.h (right): https://codereview.chromium.org/2848973002/diff/60001/content/browser/renderer_host/media/service_launched_video_capture_device.h#newcode39 content/browser/renderer_host/media/service_launched_video_capture_device.h:39: video_capture::mojom::DevicePtr device_; ...
3 years, 7 months ago (2017-05-03 19:10:23 UTC) #16
chfremer
rockot@: PTAL I tried the simplification with the tests coming up in CL25, and it ...
3 years, 7 months ago (2017-05-03 21:10:39 UTC) #17
Ken Rockot(use gerrit already)
lgtm
3 years, 7 months ago (2017-05-03 21:12:24 UTC) #18
chfremer
Thanks for the review! https://codereview.chromium.org/2848973002/diff/60001/content/browser/renderer_host/media/service_launched_video_capture_device.h File content/browser/renderer_host/media/service_launched_video_capture_device.h (right): https://codereview.chromium.org/2848973002/diff/60001/content/browser/renderer_host/media/service_launched_video_capture_device.h#newcode39 content/browser/renderer_host/media/service_launched_video_capture_device.h:39: video_capture::mojom::DevicePtr device_; On 2017/05/03 19:10:23, ...
3 years, 7 months ago (2017-05-03 21:29:36 UTC) #19
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/2848973002/100001
3 years, 7 months ago (2017-05-03 21:30:36 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/426791)
3 years, 7 months ago (2017-05-03 21:41:38 UTC) #24
chfremer
avi@: PTAL BUILD.gn
3 years, 7 months ago (2017-05-03 22:17:29 UTC) #26
Avi (use Gerrit)
lgtm stamp
3 years, 7 months ago (2017-05-04 17:47:08 UTC) #27
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/2848973002/100001
3 years, 7 months ago (2017-05-04 17:48:26 UTC) #29
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 18:14:17 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/954d0aca7b6fa688b7e963c57475...

Powered by Google App Engine
This is Rietveld 408576698