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

Issue 801363002: Queue commands to the Os to start a video device. (Closed)

Created:
6 years ago by perkj_chrome
Modified:
5 years, 11 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Queue commands to the Os to start a video device. Since it might take 1-2 seconds to start a device and the OS calls are blocking, a device should not be attempted to be started until the device thread is ready to process the request. Instead, the requests are queued in VideoCaptureManager on the IO-thread. BUG=428891 Committed: https://crrev.com/e770b238860b8907f054cecd8be9681922c2e3a0 Cr-Commit-Position: refs/heads/master@{#312081}

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : Change to have DeviceEntry only touched on IO-thread. #

Total comments: 1

Patch Set 4 : Updated comments. #

Total comments: 38

Patch Set 5 : Addressed comments. #

Total comments: 2

Patch Set 6 : Fix potential race when calling VideoCapture::Start->Pause #

Total comments: 6

Patch Set 7 : Addressed more comments. #

Total comments: 2

Patch Set 8 : Changed to use DeviceEntry start_id as identifier. #

Patch Set 9 : Fix lint + include algorithm. #

Patch Set 10 : std::find_if #

Total comments: 8

Patch Set 11 : Adressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -58 lines) Patch
M content/browser/renderer_host/media/video_capture_manager.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +57 lines, -10 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 3 4 5 6 7 8 9 10 13 chunks +152 lines, -48 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager_unittest.cc View 1 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
perkj_chrome
Can you please review?
6 years ago (2014-12-15 15:27:21 UTC) #2
tommi (sloooow) - chröme
https://codereview.chromium.org/801363002/diff/20001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/801363002/diff/20001/content/browser/renderer_host/media/video_capture_manager.cc#newcode222 content/browser/renderer_host/media/video_capture_manager.cc:222: CaptureDeviceStartRequest::CaptureDeviceStartRequest( no need to wrap? https://codereview.chromium.org/801363002/diff/20001/content/browser/renderer_host/media/video_capture_manager.cc#newcode259 content/browser/renderer_host/media/video_capture_manager.cc:259: delete entry; ...
6 years ago (2014-12-15 16:25:05 UTC) #3
perkj_chrome
How about this? https://codereview.chromium.org/801363002/diff/20001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/801363002/diff/20001/content/browser/renderer_host/media/video_capture_manager.cc#newcode222 content/browser/renderer_host/media/video_capture_manager.cc:222: CaptureDeviceStartRequest::CaptureDeviceStartRequest( On 2014/12/15 16:25:05, tommi wrote: ...
6 years ago (2014-12-16 20:15:05 UTC) #4
tommi (sloooow) - chröme
I think this is a good refactoring change. A few comments and questions here and ...
6 years ago (2014-12-16 22:31:25 UTC) #5
perkj_chrome
PTAL https://codereview.chromium.org/801363002/diff/60001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/801363002/diff/60001/content/browser/renderer_host/media/video_capture_manager.cc#newcode221 content/browser/renderer_host/media/video_capture_manager.cc:221: CaptureDeviceStartRequest::CaptureDeviceStartRequest( On 2014/12/16 22:31:25, tommi wrote: > 220-221 ...
6 years ago (2014-12-17 10:14:10 UTC) #6
tommi (sloooow) - chröme
will take a look at the new changes in a bit. just clarifying some of ...
6 years ago (2014-12-17 11:12:53 UTC) #7
perkj_chrome
https://codereview.chromium.org/801363002/diff/60001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/801363002/diff/60001/content/browser/renderer_host/media/video_capture_manager.cc#newcode265 content/browser/renderer_host/media/video_capture_manager.cc:265: base::Passed(entry->video_capture_device.Pass()))); On 2014/12/17 11:12:53, tommi wrote: > On 2014/12/17 ...
6 years ago (2014-12-17 11:47:21 UTC) #9
tommi (sloooow) - chröme
https://codereview.chromium.org/801363002/diff/60001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/801363002/diff/60001/content/browser/renderer_host/media/video_capture_manager.cc#newcode315 content/browser/renderer_host/media/video_capture_manager.cc:315: (*entry_it)->video_capture_device.reset(device.release()); On 2014/12/17 11:47:21, perkj wrote: > On 2014/12/17 ...
6 years ago (2014-12-17 14:46:12 UTC) #10
perkj_chrome
PTAL https://codereview.chromium.org/801363002/diff/80001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/801363002/diff/80001/content/browser/renderer_host/media/video_capture_manager.cc#newcode247 content/browser/renderer_host/media/video_capture_manager.cc:247: // OnDeviceStarted. On 2014/12/17 14:46:12, tommi wrote: > ...
6 years ago (2014-12-18 12:15:32 UTC) #11
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/801363002/diff/200001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/801363002/diff/200001/content/browser/renderer_host/media/video_capture_manager.cc#newcode109 content/browser/renderer_host/media/video_capture_manager.cc:109: : start_id(g_device_start_id++), is there a way to dcheck ...
5 years, 11 months ago (2015-01-13 21:22:45 UTC) #12
perkj_chrome
ptal https://codereview.chromium.org/801363002/diff/200001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/801363002/diff/200001/content/browser/renderer_host/media/video_capture_manager.cc#newcode109 content/browser/renderer_host/media/video_capture_manager.cc:109: : start_id(g_device_start_id++), On 2015/01/13 21:22:44, tommi wrote: > ...
5 years, 11 months ago (2015-01-14 12:12:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/801363002/220001
5 years, 11 months ago (2015-01-19 08:20:07 UTC) #15
commit-bot: I haz the power
Committed patchset #11 (id:220001)
5 years, 11 months ago (2015-01-19 08:42:50 UTC) #16
commit-bot: I haz the power
5 years, 11 months ago (2015-01-19 08:43:56 UTC) #17
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/e770b238860b8907f054cecd8be9681922c2e3a0
Cr-Commit-Position: refs/heads/master@{#312081}

Powered by Google App Engine
This is Rietveld 408576698