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

Issue 91343002: Added supported formats caching to VideoCaptureManager. (Closed)

Created:
7 years ago by mcasas
Modified:
7 years ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org, tommi (sloooow) - chröme
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Added supported formats caching to VideoCaptureManager, and adapted code to cideo_capture_types.{h,cc} reorganization. Rewritten http://crrev.com/29423003 for the new structure of video_capture_types.h: The device's capabilities are turned into a vector of supported formats. No new code is added, the previously reviewed one is adapted. VideoCaptureCapability class is not used anymore, so removed (I tried to make very evident every time I use VideoCaptureFormat as a supported format). VideoCaptureLinux and FakeVCD are also adapted, originally the code for retrieving their caps comes from http://crrev.com/24079003 1 VCM unittest disabled for Mac Valgrind: Underlying FakeVCD hits a SIGSEGV at the end of this test in Mac Valgrind bot, see http://crbug.com/319955. Possibly associated to FakeVCD races, re-enable this test after http://crbug.com/323893, ongoing http://crrev.com/91523002. NOTE: Time ago a bug was filed against this code due to chrome OS new user's take-a-picture would not show anything. I just verified this seems to work now. BUG=289494, 309554 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240395

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Rebased FakeVCD. Reconnected VCManager unittest for all platforms. #

Total comments: 12

Patch Set 3 : scherkus@ comments. #

Patch Set 4 : Rebased. #

Patch Set 5 : Mad formatting corrected in certain files. #

Total comments: 10

Patch Set 6 : perkj@ nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -142 lines) Patch
M content/browser/renderer_host/media/video_capture_controller.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.h View 1 2 3 4 6 chunks +40 lines, -11 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 3 4 5 11 chunks +119 lines, -32 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager_unittest.cc View 1 2 3 4 5 2 chunks +92 lines, -0 lines 0 comments Download
M content/common/media/video_capture_messages.h View 1 chunk +0 lines, -4 lines 0 comments Download
M media/video/capture/android/video_capture_device_android.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/fake_video_capture_device.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M media/video/capture/fake_video_capture_device.cc View 1 2 3 4 5 4 chunks +26 lines, -12 lines 0 comments Download
M media/video/capture/file_video_capture_device.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/file_video_capture_device.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M media/video/capture/linux/video_capture_device_linux.cc View 1 2 3 4 4 chunks +12 lines, -18 lines 0 comments Download
M media/video/capture/mac/video_capture_device_mac.mm View 1 2 3 4 2 chunks +10 lines, -3 lines 0 comments Download
M media/video/capture/video_capture_device.h View 1 2 3 4 2 chunks +7 lines, -14 lines 0 comments Download
M media/video/capture/video_capture_device.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M media/video/capture/video_capture_device_unittest.cc View 2 chunks +13 lines, -11 lines 0 comments Download
M media/video/capture/video_capture_types.h View 3 chunks +4 lines, -14 lines 0 comments Download
M media/video/capture/video_capture_types.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M media/video/capture/win/video_capture_device_win.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
mcasas
perkj@, following our conversation, could you PTAL? +tommi@ cc FYI.
7 years ago (2013-11-27 16:44:45 UTC) #1
perkj_chrome
lg but we need to fix the fake device first. What was the Chrome os ...
7 years ago (2013-11-27 17:53:12 UTC) #2
mcasas
scherkus@ could you have a look at content/browser/renderer_host/media/* ? cevans@ could you have a look ...
7 years ago (2013-12-03 14:28:40 UTC) #3
scherkus (not reviewing)
https://codereview.chromium.org/91343002/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/91343002/diff/60001/content/browser/renderer_host/media/video_capture_manager.cc#newcode284 content/browser/renderer_host/media/video_capture_manager.cc:284: DCHECK(device_in_use); if you're DCHECK'ing this is non-null ... but ...
7 years ago (2013-12-03 22:04:47 UTC) #4
mcasas
Hi scherkus@, ptal. cevans@: ping. https://codereview.chromium.org/91343002/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/91343002/diff/60001/content/browser/renderer_host/media/video_capture_manager.cc#newcode284 content/browser/renderer_host/media/video_capture_manager.cc:284: DCHECK(device_in_use); On 2013/12/03 22:04:48, ...
7 years ago (2013-12-04 15:23:32 UTC) #5
mcasas
Actually I didn't need to bother cevans@, scherkus@ can give LGTM's for: content/common/media/video_capture_messages.h -> Rationale: ...
7 years ago (2013-12-09 15:05:40 UTC) #6
scherkus (not reviewing)
lgtm
7 years ago (2013-12-09 19:01:51 UTC) #7
scherkus (not reviewing)
lgtm
7 years ago (2013-12-09 19:01:52 UTC) #8
mcasas
perkj@: it seems that "Rebase" made a big mess, PTAL now. inferno@: content/common/media/video_capture_messages.h
7 years ago (2013-12-10 11:20:32 UTC) #9
perkj_chrome
lgtm if the below is addressed. https://codereview.chromium.org/91343002/diff/210001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/91343002/diff/210001/content/browser/renderer_host/media/video_capture_manager.cc#newcode410 content/browser/renderer_host/media/video_capture_manager.cc:410: media::VideoCaptureDevice::Names::iterator it; nit: ...
7 years ago (2013-12-10 12:27:13 UTC) #10
mcasas
Hi tsepez@: content/common/media/video_capture_messages.h OWNERS stamp please. https://codereview.chromium.org/91343002/diff/210001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/91343002/diff/210001/content/browser/renderer_host/media/video_capture_manager.cc#newcode410 content/browser/renderer_host/media/video_capture_manager.cc:410: media::VideoCaptureDevice::Names::iterator it; On ...
7 years ago (2013-12-12 10:38:04 UTC) #11
Tom Sepez
Rubberstamp LGTM on deleting code from video_capture_messages.h
7 years ago (2013-12-12 17:34:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/91343002/230001
7 years ago (2013-12-12 17:36:25 UTC) #13
commit-bot: I haz the power
7 years ago (2013-12-12 20:40:28 UTC) #14
Message was sent while issue was closed.
Change committed as 240395

Powered by Google App Engine
This is Rietveld 408576698