DescriptionMedia Stream Image Capture (4): wire takePhoto and implement in FakeVCDevice
This CL wires the takePhoto() call from ImageCaptureImpl,
via MediaStreamManager and VideoCaptureManager, to
VideoCaptureDevice. It also implements it for the Fake Video
CaptureDevice, and extends its unit test.
Note the multiple thread-hopping: MSM can only be
accessed on UI thread, where the Mojo callback has
to be Run back. VCManager and FakeVCD live on the
IO thread. (In the future, some platform-VCDevices
have even more threads!).
BUG=518807
TEST= run demo html in
https://rawgit.com/Miguelao/demos/master/imagecapture.html
with flag --enable-blink-features=ImageCapture
(click on "Open Camera 320x240", then on
"Create Image Capturer" and finally, repeatedly,
on "takePhoto").
Committed: https://crrev.com/c67c0bc29e2ce52567af8f769134bd067ba2615b
Cr-Commit-Position: refs/heads/master@{#392350}
Patch Set 1 : unittests #
Total comments: 15
Patch Set 2 : miu@s comments #
Total comments: 10
Patch Set 3 : miu@s second round of comments #
Total comments: 2
Patch Set 4 : forgotten "!" and rebase #
Total comments: 12
Patch Set 5 : tommi@ and mlamouri@ comments #Messages
Total messages: 34 (19 generated)
|