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

Issue 2358093002: File Video Capture: allow IO operations from Device thread (Closed)

Created:
4 years, 3 months ago by mcasas
Modified:
4 years, 3 months ago
Reviewers:
chfremer
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

File Video Capture: allow IO operations from Device thread FileVideoCapture is a test-only feature, enabled via two command line flags. It overwrites any system webcam and introduces a file playback instead. This CL allows the video capture thread to access IO operations. BUG=648989 TEST= Run e.g. ./out/gn/Chromium.app/Contents/MacOS/Chromium --use-fake-device-for-media-stream --use-file-for-fake-video-capture=~/Downloads/old_town_cross_420_720p50.y4m https://rawgit.com/Miguelao/demos/master/gum_simple.html with the said file d'led from https://media.xiph.org/video/derf/y4m/ Committed: https://crrev.com/831eae63921bd78ee3d8da4d017bc439a3642985 Cr-Commit-Position: refs/heads/master@{#420503}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #include "base/threading/thread_restrictions.h" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M media/capture/video/file_video_capture_device_factory.cc View 1 4 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
mcasas
marpan@ ptal
4 years, 3 months ago (2016-09-21 22:35:58 UTC) #5
mcasas
chfremer@ PTAL
4 years, 3 months ago (2016-09-22 15:57:36 UTC) #7
chfremer
https://codereview.chromium.org/2358093002/diff/20001/media/capture/video/file_video_capture_device_factory.cc File media/capture/video/file_video_capture_device_factory.cc (right): https://codereview.chromium.org/2358093002/diff/20001/media/capture/video/file_video_capture_device_factory.cc#newcode45 media/capture/video/file_video_capture_device_factory.cc:45: base::ThreadRestrictions::SetIOAllowed(true); I believe this will work, but it feels ...
4 years, 3 months ago (2016-09-22 16:39:54 UTC) #8
mcasas
ptal https://codereview.chromium.org/2358093002/diff/20001/media/capture/video/file_video_capture_device_factory.cc File media/capture/video/file_video_capture_device_factory.cc (right): https://codereview.chromium.org/2358093002/diff/20001/media/capture/video/file_video_capture_device_factory.cc#newcode45 media/capture/video/file_video_capture_device_factory.cc:45: base::ThreadRestrictions::SetIOAllowed(true); On 2016/09/22 16:39:53, chfremer wrote: > I ...
4 years, 3 months ago (2016-09-22 16:47:03 UTC) #9
chfremer
On 2016/09/22 16:47:03, mcasas wrote: > ptal > > https://codereview.chromium.org/2358093002/diff/20001/media/capture/video/file_video_capture_device_factory.cc > File media/capture/video/file_video_capture_device_factory.cc (right): > ...
4 years, 3 months ago (2016-09-22 17:14:20 UTC) #10
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/2358093002/20001
4 years, 3 months ago (2016-09-22 17:27:23 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/132900)
4 years, 3 months ago (2016-09-22 17:38:28 UTC) #14
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/2358093002/40001
4 years, 3 months ago (2016-09-22 22:02:21 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 3 months ago (2016-09-22 23:45:24 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-22 23:50:21 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/831eae63921bd78ee3d8da4d017bc439a3642985
Cr-Commit-Position: refs/heads/master@{#420503}

Powered by Google App Engine
This is Rietveld 408576698