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

Issue 558503003: Windows video capture: Remove duplicated code from GetDeviceSupportedFormats* (Closed)

Created:
6 years, 3 months ago by magjed_chromium
Modified:
6 years, 1 month ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Windows video capture: Remove duplicated code from GetDeviceSupportedFormats* The code for GetDeviceSupportedFormatsMediaFoundation and GetDeviceSupportedFormatsDirectShow are already implemented in video_capture_device_mf_win.cc and video_capture_device_win.cc respectively. This CL refactors the implementation so that video_capture_device_factory_win.cc can make use of that code. Committed: https://crrev.com/b6dae80f8f10b8af1e3026de9f5af4f3128e812a Cr-Commit-Position: refs/heads/master@{#301891}

Patch Set 1 #

Total comments: 6

Patch Set 2 : refactor #

Total comments: 1

Patch Set 3 : offline discussion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -115 lines) Patch
M media/video/capture/win/video_capture_device_factory_win.cc View 1 2 4 chunks +17 lines, -100 lines 0 comments Download
M media/video/capture/win/video_capture_device_mf_win.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M media/video/capture/win/video_capture_device_mf_win.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M media/video/capture/win/video_capture_device_win.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M media/video/capture/win/video_capture_device_win.cc View 1 2 7 chunks +19 lines, -12 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
magjed_chromium
Please take a look.
6 years, 3 months ago (2014-09-09 18:46:53 UTC) #2
perkj_chrome
https://codereview.chromium.org/558503003/diff/40001/media/video/capture/win/video_capture_device_mf_win.cc File media/video/capture/win/video_capture_device_mf_win.cc (right): https://codereview.chromium.org/558503003/diff/40001/media/video/capture/win/video_capture_device_mf_win.cc#newcode69 media/video/capture/win/video_capture_device_mf_win.cc:69: kFirstVideoStream, stream_index, type.Receive()))) { indentation. while (SUCCEEDED(hr = source->GetNativeMediaType( ...
6 years, 3 months ago (2014-09-19 10:04:55 UTC) #5
magjed_chromium
mcasas: Please take a look.
6 years, 2 months ago (2014-10-16 10:44:42 UTC) #8
magjed_chromium
mcasas: Friendly ping.
6 years, 2 months ago (2014-10-22 16:00:45 UTC) #9
tommi (sloooow) - chröme
https://codereview.chromium.org/558503003/diff/40001/media/video/capture/win/capability_list_win.h File media/video/capture/win/capability_list_win.h (right): https://codereview.chromium.org/558503003/diff/40001/media/video/capture/win/capability_list_win.h#newcode22 media/video/capture/win/capability_list_win.h:22: int stream_index; can this be const? https://codereview.chromium.org/558503003/diff/40001/media/video/capture/win/video_capture_device_factory_win.cc File media/video/capture/win/video_capture_device_factory_win.cc ...
6 years, 2 months ago (2014-10-22 16:23:13 UTC) #10
mcasas
lgtm with a nit. Please 2x check that there's no extra operations when creating VideoCaptureDeviceWin ...
6 years, 2 months ago (2014-10-23 08:25:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/558503003/200001
6 years, 1 month ago (2014-10-29 17:57:50 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/20969)
6 years, 1 month ago (2014-10-29 18:06:43 UTC) #19
tommi (sloooow) - chröme
lgtm
6 years, 1 month ago (2014-10-29 18:08:15 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/558503003/200001
6 years, 1 month ago (2014-10-29 18:08:43 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:200001)
6 years, 1 month ago (2014-10-29 18:47:29 UTC) #23
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/b6dae80f8f10b8af1e3026de9f5af4f3128e812a Cr-Commit-Position: refs/heads/master@{#301891}
6 years, 1 month ago (2014-10-29 18:48:08 UTC) #24
dmichael (off chromium)
6 years, 1 month ago (2014-10-30 20:48:07 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:200001) has been created in
https://codereview.chromium.org/691143002/ by dmichael@chromium.org.

The reason for reverting is: See
https://code.google.com/p/chromium/issues/detail?id=428958.

Powered by Google App Engine
This is Rietveld 408576698