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

Issue 2896913002: Reland [Mojo Video Capture] Hook up video capture service behind a feature flag (Closed)

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

Description

Reland [Mojo Video Capture] Hook up video capture service behind a feature flag Link to original CL: https://codereview.chromium.org/2867213004/ PatchSet 1 is the state as reviewed previously. PatchSet 2 fixes the reasons for the revert. Description of issues --------------------- 1.) Webkit Android bots for blink_heap_unittests and webkit_unit_tests fail with OSError: [Errno 2] No such file or directory: '/b/c/b/WebKit_Android__Nexus4_/src/out/Release/gen/services/video_capture/manifest.json' 2.) MSan tests fail when running VideoCaptureBrowserTest.ReceiveFramesFromFakeCaptureDevice/22 Description of fixes -------------------- For 1.: Removed an unnecessary data_dep on on the service manifest. Even though unclear why the particular tests would want to use the manifest file and why it was not copied, this is likely to fix the issue. For 2.: It appears that this is an existing issue that was triggered by the new test cases added in this CL. I am disabling these test cases for now, and added https://crbug.com/725271 to track the issue. Original CL description ----------------------- This CL is part of the Mojo Video Capture work. For the bigger picture, see [1] CL25. After this CL, the video capture service can be enabled by starting Chrome with command-line flag --enable-features=MojoVideoCapture. Changes in this CL: * Add a base::Feature kMojoVideoCapture to allow switching the service on and off. * Add a class VideoCaptureProviderSwitcher that can route device capture requests to the service's VideoCaptureProvider while routing screen capture requests to the InProcessVideoCaptureProvider. * Hook up the VideoCaptureProviderSwitcher in the factory code in MediaStreamManager. * Register video capture service in the service manager context for the Browser process. * Remove build flag "enable_mojo_video_capture", since we want the service to be testable in all builds. * Forward switches for using fake video capture devices to utility processes. * Add test cases for exercising the service to VideoCaptureBrowserTest. BUG=584797 TEST= content_browsertests --gtest_filter="VideoCaptureBrowserTest.*" TBR=mcasas@chromium.org,rockot@chromium.org,piman@chromium.org,tsepez@chromium.org [1] https://docs.google.com/a/chromium.org/document/d/1Qw7rw1AJy0QHXjha36jZNiEuxsxWslJ_X-zpOhijvI8/edit?usp=sharing Review-Url: https://codereview.chromium.org/2896913002 Cr-Commit-Position: refs/heads/master@{#473902} Committed: https://chromium.googlesource.com/chromium/src/+/70b40e5124b29181bb42c870c3bf7498e6075022

Patch Set 1 #

Patch Set 2 : Fixes for test/bot failures. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -80 lines) Patch
M content/browser/BUILD.gn View 5 chunks +10 lines, -22 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/service_video_capture_device_launcher.cc View 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_browsertest.cc View 1 12 chunks +98 lines, -36 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_provider.h View 2 chunks +6 lines, -3 lines 0 comments Download
A content/browser/renderer_host/media/video_capture_provider_switcher.h View 1 chunk +38 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/video_capture_provider_switcher.cc View 1 chunk +88 lines, -0 lines 0 comments Download
M content/browser/service_manager/service_manager_context.cc View 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/utility_process_host_impl.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M content/public/app/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 chunk +2 lines, -1 line 0 comments Download
M content/test/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/utility/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M content/utility/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/utility/utility_service_factory.cc View 2 chunks +15 lines, -0 lines 0 comments Download
M media/capture/video/video_capture_system.h View 1 chunk +2 lines, -1 line 0 comments Download
M services/video_capture/BUILD.gn View 1 1 chunk +0 lines, -4 lines 0 comments Download
M services/video_capture/device_factory_media_to_mojo_adapter.cc View 1 chunk +4 lines, -11 lines 0 comments Download
M services/video_capture/public/cpp/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A services/video_capture/public/cpp/constants.h View 1 chunk +16 lines, -0 lines 0 comments Download
A services/video_capture/public/cpp/constants.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M services/video_capture/service_manifest.json View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (10 generated)
chfremer
TBR
3 years, 7 months ago (2017-05-22 23:28:26 UTC) #6
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/2896913002/20001
3 years, 7 months ago (2017-05-23 15:08:21 UTC) #10
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 15:14:18 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/70b40e5124b29181bb42c870c3bf...

Powered by Google App Engine
This is Rietveld 408576698