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

Issue 2379253003: Video Capture Service: typemap video_capture's and media's VideoCaptureFormat (Closed)

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

Description

Video Capture Service: typemap video_capture's and media's VideoCaptureFormat This CL introduces type mapping (via StructTraits) between video_capture::mojom::VideoCaptureFormatDataView and media::VideoCaptureFormat and adapts the code in services/video_capture accordingly. This is needed to progress in the migration of Video Capture messages between renderer and browser being tracked in the mentioned bug. BUG=651897, 642387 TEST= video_capture_unittests working. Committed: https://crrev.com/fc81eb705628fbf68ee9b714c1a1a979b42c623c Cr-Commit-Position: refs/heads/master@{#423046}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : dcheng@s comments #

Total comments: 6

Patch Set 3 : chfremer@ comments #

Total comments: 7

Patch Set 4 : dcheng@s second round of comments #

Total comments: 4

Patch Set 5 : more traits methods inlining #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -62 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/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M services/video_capture/fake_device_descriptor_unittest.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M services/video_capture/fake_device_unittest.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M services/video_capture/mock_device_video_capture_service_test.h View 1 chunk +1 line, -1 line 0 comments Download
M services/video_capture/mock_device_video_capture_service_test.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M services/video_capture/mock_device_video_capture_service_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M services/video_capture/mojo_media_conversions.h View 1 1 chunk +0 lines, -6 lines 0 comments Download
M services/video_capture/mojo_media_conversions.cc View 1 1 chunk +0 lines, -31 lines 0 comments Download
A + services/video_capture/public/interfaces/typemaps.gni View 1 2 1 chunk +1 line, -1 line 0 comments Download
A services/video_capture/public/interfaces/video_capture_format.typemap View 1 1 chunk +20 lines, -0 lines 0 comments Download
A services/video_capture/public/interfaces/video_capture_format_traits.h View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
A services/video_capture/public/interfaces/video_capture_format_traits.cc View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
M services/video_capture/video_capture_device_proxy_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M services/video_capture/video_capture_device_proxy_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (13 generated)
mcasas
dcheng@ my first stab at StructTraits, ptal chfremer@ fyi/ptal (but I'd wait for dcheng@ in ...
4 years, 2 months ago (2016-10-02 22:52:16 UTC) #6
dcheng
https://codereview.chromium.org/2379253003/diff/40001/services/video_capture/public/interfaces/video_capture_format_traits.h File services/video_capture/public/interfaces/video_capture_format_traits.h (right): https://codereview.chromium.org/2379253003/diff/40001/services/video_capture/public/interfaces/video_capture_format_traits.h#newcode30 services/video_capture/public/interfaces/video_capture_format_traits.h:30: return static_cast<media::mojom::VideoFormat>(r.pixel_format); Mojo has EnumTraits for mapping enums. Example: ...
4 years, 2 months ago (2016-10-03 01:03:09 UTC) #7
mcasas
dcheng@ PTAL, please advice what to do about VideoPixelFormat. https://codereview.chromium.org/2379253003/diff/40001/services/video_capture/public/interfaces/video_capture_format_traits.h File services/video_capture/public/interfaces/video_capture_format_traits.h (right): https://codereview.chromium.org/2379253003/diff/40001/services/video_capture/public/interfaces/video_capture_format_traits.h#newcode30 services/video_capture/public/interfaces/video_capture_format_traits.h:30: ...
4 years, 2 months ago (2016-10-03 07:31:51 UTC) #10
chfremer
A few comments and questions. https://codereview.chromium.org/2379253003/diff/40001/services/video_capture/public/interfaces/video_capture_format_traits.h File services/video_capture/public/interfaces/video_capture_format_traits.h (right): https://codereview.chromium.org/2379253003/diff/40001/services/video_capture/public/interfaces/video_capture_format_traits.h#newcode30 services/video_capture/public/interfaces/video_capture_format_traits.h:30: return static_cast<media::mojom::VideoFormat>(r.pixel_format); On 2016/10/03 ...
4 years, 2 months ago (2016-10-03 16:26:59 UTC) #11
dcheng
https://codereview.chromium.org/2379253003/diff/40001/services/video_capture/public/interfaces/video_capture_format_traits.h File services/video_capture/public/interfaces/video_capture_format_traits.h (right): https://codereview.chromium.org/2379253003/diff/40001/services/video_capture/public/interfaces/video_capture_format_traits.h#newcode30 services/video_capture/public/interfaces/video_capture_format_traits.h:30: return static_cast<media::mojom::VideoFormat>(r.pixel_format); On 2016/10/03 16:26:59, chfremer wrote: > On ...
4 years, 2 months ago (2016-10-03 20:45:53 UTC) #12
mcasas
ptal https://codereview.chromium.org/2379253003/diff/80001/services/video_capture/fake_device_descriptor_unittest.cc File services/video_capture/fake_device_descriptor_unittest.cc (right): https://codereview.chromium.org/2379253003/diff/80001/services/video_capture/fake_device_descriptor_unittest.cc#newcode74 services/video_capture/fake_device_descriptor_unittest.cc:74: media::VideoCaptureFormat arbitrary_requested_format; On 2016/10/03 16:26:59, chfremer wrote: > ...
4 years, 2 months ago (2016-10-03 21:19:07 UTC) #13
chfremer
lgtm
4 years, 2 months ago (2016-10-03 22:04:56 UTC) #14
mcasas
rockot@ plz RS mojo/public/tools/bindings/chromium_bindings_configuration.gni
4 years, 2 months ago (2016-10-03 22:07:26 UTC) #16
dcheng
https://codereview.chromium.org/2379253003/diff/100001/services/video_capture/public/interfaces/video_capture_format_traits.cc File services/video_capture/public/interfaces/video_capture_format_traits.cc (right): https://codereview.chromium.org/2379253003/diff/100001/services/video_capture/public/interfaces/video_capture_format_traits.cc#newcode16 services/video_capture/public/interfaces/video_capture_format_traits.cc:16: return gfx::Size(format.frame_size.width(), format.frame_size.height()); Return a const gfx::Size& and return ...
4 years, 2 months ago (2016-10-04 01:33:18 UTC) #17
dcheng
https://codereview.chromium.org/2379253003/diff/100001/services/video_capture/public/interfaces/video_capture_format_traits.cc File services/video_capture/public/interfaces/video_capture_format_traits.cc (right): https://codereview.chromium.org/2379253003/diff/100001/services/video_capture/public/interfaces/video_capture_format_traits.cc#newcode16 services/video_capture/public/interfaces/video_capture_format_traits.cc:16: return gfx::Size(format.frame_size.width(), format.frame_size.height()); On 2016/10/04 01:33:18, dcheng wrote: > ...
4 years, 2 months ago (2016-10-04 01:34:37 UTC) #18
mcasas
dcheng@ PTAL (rockot@ RS needed) https://codereview.chromium.org/2379253003/diff/100001/services/video_capture/public/interfaces/video_capture_format_traits.cc File services/video_capture/public/interfaces/video_capture_format_traits.cc (right): https://codereview.chromium.org/2379253003/diff/100001/services/video_capture/public/interfaces/video_capture_format_traits.cc#newcode16 services/video_capture/public/interfaces/video_capture_format_traits.cc:16: return gfx::Size(format.frame_size.width(), format.frame_size.height()); On ...
4 years, 2 months ago (2016-10-04 02:46:20 UTC) #19
dcheng
LGTM with comments addressed sorry for the delay, I missed your original followup =( https://codereview.chromium.org/2379253003/diff/120001/services/video_capture/public/interfaces/video_capture_format_traits.cc ...
4 years, 2 months ago (2016-10-04 22:09:26 UTC) #20
mcasas
for the addition to DEPS, plz RS: ui/gfx: danakj@chromium.org media/base: sandersd@chromium.org rockot@ plz RS chromium_bindings_configuration.gni ...
4 years, 2 months ago (2016-10-04 22:16:56 UTC) #22
sandersd (OOO until July 31)
Dependency addition of //media/base LGTM.
4 years, 2 months ago (2016-10-04 22:23:30 UTC) #23
Ken Rockot(use gerrit already)
RS LGTM
4 years, 2 months ago (2016-10-04 22:26:22 UTC) #24
danakj
geometry deps LGTM
4 years, 2 months ago (2016-10-04 23:44:10 UTC) #25
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/2379253003/140001
4 years, 2 months ago (2016-10-04 23:45:22 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 2 months ago (2016-10-05 01:46:02 UTC) #30
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 01:50:30 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/fc81eb705628fbf68ee9b714c1a1a979b42c623c
Cr-Commit-Position: refs/heads/master@{#423046}

Powered by Google App Engine
This is Rietveld 408576698