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

Issue 2494033004: [Mojo Video Capture] Use string keys instead of VideoCaptureDeviceDescriptor (Closed)

Created:
4 years, 1 month ago by chfremer
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez, mcasas, yzshen1
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, posciak+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mojo Video Capture] Use string keys instead of VideoCaptureDeviceDescriptor In interface VideoCaptureDeviceFactory, instances of struct VideoCaptureDeviceDescriptor were used as keys for accessing capture devices. This CL simplifies this key to a simple string. This CL is part of the Mojo Video Capture work. For the bigger picture, see [1] CL1.9.4 BUG=637439, 584797 TEST=video_capture_unittests, content_unittests, capture_unittests [1] https://docs.google.com/a/chromium.org/document/d/1Qw7rw1AJy0QHXjha36jZNiEuxsxWslJ_X-zpOhijvI8/edit?usp=sharing yzshen@: PTAL mcasas@: PTAL Committed: https://crrev.com/f6995b002a218dff4841cd1793f79d4e8a8991ad Cr-Commit-Position: refs/heads/master@{#432040}

Patch Set 1 #

Total comments: 2

Patch Set 2 : yzshen's comments #

Total comments: 2

Patch Set 3 : yzshen's comment #

Total comments: 8

Patch Set 4 : mcasas comments #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -62 lines) Patch
M media/capture/video/video_capture_device_factory.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M services/video_capture/device_factory_media_to_mojo_adapter.h View 1 2 3 2 chunks +10 lines, -9 lines 0 comments Download
M services/video_capture/device_factory_media_to_mojo_adapter.cc View 1 2 3 3 chunks +40 lines, -15 lines 0 comments Download
M services/video_capture/fake_device_descriptor_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M services/video_capture/fake_device_test.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M services/video_capture/fake_device_unittest.cc View 2 chunks +1 line, -9 lines 0 comments Download
M services/video_capture/mock_device_descriptor_receiver.h View 1 chunk +1 line, -1 line 0 comments Download
M services/video_capture/mock_device_test.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M services/video_capture/public/interfaces/video_capture_device_factory.mojom View 2 chunks +9 lines, -10 lines 0 comments Download
M services/video_capture/receiver_mojo_to_media_adapter.h View 2 chunks +0 lines, -5 lines 0 comments Download
M services/video_capture/video_capture_service.cc View 1 chunk +1 line, -0 lines 0 comments Download
M services/video_capture/video_capture_service_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (21 generated)
chfremer
yzshen@: PTAL mcasas@: PTAL tsepez@: Please RS *.mojom
4 years, 1 month ago (2016-11-12 00:09:48 UTC) #3
yzshen1
https://codereview.chromium.org/2494033004/diff/1/services/video_capture/device_factory_media_to_mojo_adapter.cc File services/video_capture/device_factory_media_to_mojo_adapter.cc (right): https://codereview.chromium.org/2494033004/diff/1/services/video_capture/device_factory_media_to_mojo_adapter.cc#newcode137 services/video_capture/device_factory_media_to_mojo_adapter.cc:137: descriptors_by_id_.clear(); Why do we need to store descriptors_by_id_ as ...
4 years, 1 month ago (2016-11-12 00:27:29 UTC) #6
Tom Sepez
RS mojom.
4 years, 1 month ago (2016-11-12 00:56:06 UTC) #7
Tom Sepez
On 2016/11/12 00:56:06, Tom Sepez wrote: > RS mojom. RS LGTM mojom, that is.
4 years, 1 month ago (2016-11-12 01:02:23 UTC) #8
chfremer
yzshen@: PTAL https://codereview.chromium.org/2494033004/diff/1/services/video_capture/device_factory_media_to_mojo_adapter.cc File services/video_capture/device_factory_media_to_mojo_adapter.cc (right): https://codereview.chromium.org/2494033004/diff/1/services/video_capture/device_factory_media_to_mojo_adapter.cc#newcode137 services/video_capture/device_factory_media_to_mojo_adapter.cc:137: descriptors_by_id_.clear(); On 2016/11/12 00:27:29, yzshen1 wrote: > ...
4 years, 1 month ago (2016-11-14 17:38:05 UTC) #11
yzshen1
https://codereview.chromium.org/2494033004/diff/20001/services/video_capture/device_factory_media_to_mojo_adapter.cc File services/video_capture/device_factory_media_to_mojo_adapter.cc (right): https://codereview.chromium.org/2494033004/diff/20001/services/video_capture/device_factory_media_to_mojo_adapter.cc#newcode102 services/video_capture/device_factory_media_to_mojo_adapter.cc:102: auto descriptor_iter = std::find_if( Something to consider: it may ...
4 years, 1 month ago (2016-11-14 17:56:21 UTC) #14
chfremer
https://codereview.chromium.org/2494033004/diff/20001/services/video_capture/device_factory_media_to_mojo_adapter.cc File services/video_capture/device_factory_media_to_mojo_adapter.cc (right): https://codereview.chromium.org/2494033004/diff/20001/services/video_capture/device_factory_media_to_mojo_adapter.cc#newcode102 services/video_capture/device_factory_media_to_mojo_adapter.cc:102: auto descriptor_iter = std::find_if( On 2016/11/14 17:56:21, yzshen1 wrote: ...
4 years, 1 month ago (2016-11-14 18:17:43 UTC) #15
yzshen1
lgtm
4 years, 1 month ago (2016-11-14 18:27:11 UTC) #16
mcasas
lgtm with a few suggestions/questions https://codereview.chromium.org/2494033004/diff/40001/services/video_capture/device_factory_media_to_mojo_adapter.cc File services/video_capture/device_factory_media_to_mojo_adapter.cc (right): https://codereview.chromium.org/2494033004/diff/40001/services/video_capture/device_factory_media_to_mojo_adapter.cc#newcode42 services/video_capture/device_factory_media_to_mojo_adapter.cc:42: std::vector<media::VideoCaptureDeviceDescriptor> descriptors; media::VideoCaptureDeviceDescriptors still ...
4 years, 1 month ago (2016-11-14 19:02:02 UTC) #19
chfremer
Addressed comments https://codereview.chromium.org/2494033004/diff/40001/services/video_capture/device_factory_media_to_mojo_adapter.cc File services/video_capture/device_factory_media_to_mojo_adapter.cc (right): https://codereview.chromium.org/2494033004/diff/40001/services/video_capture/device_factory_media_to_mojo_adapter.cc#newcode42 services/video_capture/device_factory_media_to_mojo_adapter.cc:42: std::vector<media::VideoCaptureDeviceDescriptor> descriptors; On 2016/11/14 19:02:02, mcasas wrote: ...
4 years, 1 month ago (2016-11-14 19:23:29 UTC) #20
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/2494033004/50001
4 years, 1 month ago (2016-11-14 20:50:47 UTC) #27
commit-bot: I haz the power
Failed to apply patch for services/video_capture/mock_device_test.cc: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-14 22:38:55 UTC) #29
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/2494033004/70001
4 years, 1 month ago (2016-11-14 22:59:52 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:70001)
4 years, 1 month ago (2016-11-15 01:01:44 UTC) #34
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 01:15:04 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f6995b002a218dff4841cd1793f79d4e8a8991ad
Cr-Commit-Position: refs/heads/master@{#432040}

Powered by Google App Engine
This is Rietveld 408576698