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

Issue 2457003002: [Mojo Video Capture] Simplify API and some cleanups (Closed)

Created:
4 years, 1 month ago by chfremer
Modified:
4 years, 1 month ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mojo Video Capture] Simplify API and some cleanups * Rename tests MockDeviceVideoCaptureServiceTest -> MockDeviceTest. * Instead of using struct media::VideoCaptureParams as part of the Video Capture Mojo API, introduce a new struct video_capture::VideoCaptureSettings. This makes sense because media::VideoCaptureParams has extra fields that are making the API confusing. The extra fields |pixel_format| and |pixel_storage| are not needed because the service guarantees that pixel_format is always I420, and pixel_storage is always CPU. * Move loose parameters of mojom::VideoCaptureDeviceProxy::Start() into the struct struct mojom::VideoCaptureSettings. This makes it easier to understand what the parameters mean. * Move mojom::VideoCaptureDeviceDescriptor to its own *.mojom file * Cosmetic cleanups This CL is part of the Mojo Video Capture work. For the bigger picture, see [1] CL1.7.3 BUG=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 Committed: https://crrev.com/475ef228d5701e3f80a405bdf077a880f1e309a5 Cr-Commit-Position: refs/heads/master@{#428820}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -227 lines) Patch
M mojo/public/tools/bindings/chromium_bindings_configuration.gni View 1 chunk +1 line, -0 lines 0 comments Download
M services/video_capture/BUILD.gn View 1 chunk +3 lines, -3 lines 0 comments Download
M services/video_capture/fake_device_descriptor_unittest.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M services/video_capture/fake_device_unittest.cc View 3 chunks +9 lines, -8 lines 0 comments Download
M services/video_capture/mock_device_descriptor_receiver.h View 1 chunk +2 lines, -0 lines 0 comments Download
A + services/video_capture/mock_device_test.h View 2 chunks +8 lines, -8 lines 0 comments Download
A + services/video_capture/mock_device_test.cc View 2 chunks +11 lines, -8 lines 0 comments Download
A + services/video_capture/mock_device_unittest.cc View 2 chunks +8 lines, -14 lines 0 comments Download
D services/video_capture/mock_device_video_capture_service_test.h View 1 chunk +0 lines, -40 lines 0 comments Download
D services/video_capture/mock_device_video_capture_service_test.cc View 1 chunk +0 lines, -41 lines 0 comments Download
D services/video_capture/mock_device_video_capture_service_unittest.cc View 1 chunk +0 lines, -51 lines 0 comments Download
A services/video_capture/public/cpp/video_capture_settings.h View 1 chunk +43 lines, -0 lines 0 comments Download
M services/video_capture/public/interfaces/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A + services/video_capture/public/interfaces/typemaps.gni View 1 chunk +1 line, -1 line 0 comments Download
A services/video_capture/public/interfaces/video_capture_device_descriptor.mojom View 1 chunk +33 lines, -0 lines 0 comments Download
M services/video_capture/public/interfaces/video_capture_device_factory.mojom View 3 chunks +5 lines, -31 lines 0 comments Download
M services/video_capture/public/interfaces/video_capture_device_proxy.mojom View 1 chunk +6 lines, -4 lines 0 comments Download
M services/video_capture/public/interfaces/video_capture_service.mojom View 1 chunk +2 lines, -0 lines 0 comments Download
A services/video_capture/public/interfaces/video_capture_settings.mojom View 1 chunk +21 lines, -0 lines 0 comments Download
A services/video_capture/public/interfaces/video_capture_settings.typemap View 1 chunk +21 lines, -0 lines 0 comments Download
A services/video_capture/public/interfaces/video_capture_settings_traits.h View 1 chunk +53 lines, -0 lines 0 comments Download
A services/video_capture/public/interfaces/video_capture_settings_traits.cc View 1 chunk +38 lines, -0 lines 0 comments Download
M services/video_capture/video_capture_device_proxy_impl.h View 1 chunk +1 line, -3 lines 0 comments Download
M services/video_capture/video_capture_device_proxy_impl.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M services/video_capture/video_capture_service.h View 1 chunk +0 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 19 (11 generated)
chfremer
mcasas@: PTAL
4 years, 1 month ago (2016-10-27 23:43:06 UTC) #4
mcasas
lgtm
4 years, 1 month ago (2016-10-28 17:43:24 UTC) #5
chfremer
rockot@: Please RS chromium_bindings_configuration.gni tsepez@: Please RS *.mojom
4 years, 1 month ago (2016-10-31 18:03:35 UTC) #7
Tom Sepez
RS LGTM
4 years, 1 month ago (2016-10-31 19:24:01 UTC) #8
Ken Rockot(use gerrit already)
rs lgtm
4 years, 1 month ago (2016-10-31 19:27:05 UTC) #9
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/2457003002/20001
4 years, 1 month ago (2016-10-31 21:23:58 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years, 1 month ago (2016-10-31 21:30:31 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 21:32:42 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/475ef228d5701e3f80a405bdf077a880f1e309a5
Cr-Commit-Position: refs/heads/master@{#428820}

Powered by Google App Engine
This is Rietveld 408576698