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

Issue 2471613005: [Mojo Video Capture] Use actual factory instances implementing media::VideoCaptureDeviceFactory (Closed)

Created:
4 years, 1 month ago by chfremer
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez, emircan, mcasas
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mojo Video Capture] Use actual factory instances implementing media::VideoCaptureDeviceFactory. * Replace video_capture::VideoCaptureDeviceFactoryImpl (which was capable of hosting instances of media::VideoCaptureDevice as well as mock devices) with video_capture::DeviceFactoryMediaToMojoAdapter, which wraps a media::VideoCaptureDeviceFactory. This can be used with the existing platform-specific implementations as well as with FakeVideoCaptureDeviceFactory and FileVideoCaptureDeviceFactory. * Add class video_capture::MockDeviceFactory, which takes over the responsibility of hosting mock devices and making them accessible through the media::VideoCaptureDeviceFactory interface. * Make media::VideoCaptureDeviceFactory::GetDeviceDescriptors() public so that it can be called from DeviceFactoryMediaToMojoAdapter (which is much simpler than having to call the asynchronous variant EnumerateDeviceDescriptors). This CL is part of the Mojo Video Capture work. For the bigger picture, see [1] CL1.8.1 BUG=584797 TEST=video_capture_unittests, content_unittests, capture_unittests [1] https://docs.google.com/a/chromium.org/document/d/1Qw7rw1AJy0QHXjha36jZNiEuxsxWslJ_X-zpOhijvI8/edit?usp=sharing Committed: https://crrev.com/e7408f4ef1f966edc09f907f2df421d32f72d2cb Cr-Commit-Position: refs/heads/master@{#430409}

Patch Set 1 #

Total comments: 15

Patch Set 2 : mcasas' comments #

Patch Set 3 : Removed additions to *.typemap that are not needed. #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -250 lines) Patch
M media/capture/video/video_capture_device_descriptor.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/capture/video/video_capture_device_factory.h View 2 chunks +1 line, -1 line 0 comments Download
M services/video_capture/BUILD.gn View 1 chunk +4 lines, -2 lines 0 comments Download
A services/video_capture/device_factory_media_to_mojo_adapter.h View 1 1 chunk +69 lines, -0 lines 0 comments Download
A services/video_capture/device_factory_media_to_mojo_adapter.cc View 1 1 chunk +101 lines, -0 lines 0 comments Download
M services/video_capture/device_mock_to_media_adapter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M services/video_capture/device_mock_to_media_adapter.cc View 2 chunks +4 lines, -4 lines 0 comments Download
A services/video_capture/mock_device_factory.h View 1 chunk +45 lines, -0 lines 0 comments Download
A services/video_capture/mock_device_factory.cc View 1 chunk +47 lines, -0 lines 0 comments Download
M services/video_capture/public/interfaces/video_capture_device_factory.mojom View 1 1 chunk +8 lines, -1 line 0 comments Download
D services/video_capture/video_capture_device_factory_impl.h View 1 chunk +0 lines, -84 lines 0 comments Download
D services/video_capture/video_capture_device_factory_impl.cc View 1 chunk +0 lines, -123 lines 0 comments Download
M services/video_capture/video_capture_service.h View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M services/video_capture/video_capture_service.cc View 1 2 3 4 chunks +30 lines, -27 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 27 (18 generated)
chfremer
mcasas@: PTAL
4 years, 1 month ago (2016-11-02 21:42:35 UTC) #4
chfremer
emircan@: PTAL
4 years, 1 month ago (2016-11-04 20:39:14 UTC) #6
mcasas
lgtm % comments and with bots happy. Plz try to format the CL description to ...
4 years, 1 month ago (2016-11-04 23:24:29 UTC) #7
chfremer
Addressed mcasas@ comments https://codereview.chromium.org/2471613005/diff/20001/services/video_capture/device_factory_media_to_mojo_adapter.cc File services/video_capture/device_factory_media_to_mojo_adapter.cc (right): https://codereview.chromium.org/2471613005/diff/20001/services/video_capture/device_factory_media_to_mojo_adapter.cc#newcode61 services/video_capture/device_factory_media_to_mojo_adapter.cc:61: // Revoke the access and close ...
4 years, 1 month ago (2016-11-07 18:42:37 UTC) #10
chfremer
tsepez@: Please RS added comment in *.mojom
4 years, 1 month ago (2016-11-07 19:49:44 UTC) #17
Tom Sepez
RS LGTM
4 years, 1 month ago (2016-11-07 19:51:36 UTC) #18
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/2471613005/80001
4 years, 1 month ago (2016-11-07 22:25:02 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 1 month ago (2016-11-07 23:22:21 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 23:25:59 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e7408f4ef1f966edc09f907f2df421d32f72d2cb
Cr-Commit-Position: refs/heads/master@{#430409}

Powered by Google App Engine
This is Rietveld 408576698