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 #Depends on Patchset: Dependent Patchsets: Messages
Total messages: 27 (18 generated)
|