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

Issue 2405423002: [Video Capture Service] Move Mojo structs and enums to media/capture/mojo (Closed)

Created:
4 years, 2 months ago by chfremer
Modified:
4 years, 1 month ago
CC:
Aaron Boodman, abarth-chromium, alokp+watch_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, 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

Move Mojo structs and enums to media/capture/mojo. There are several structs and enums whose native C++ representation lives in media/capture, but whose correpsonding Mojo types and typemaps live in either content/common or services/video_capture. This CL moves the Mojo types and typemaps to media/capture/mojo, so that Mojo types and corresponding native types live together. This CL is part of the Mojo Video Capture work. For the bigger picture, see [1] CL1.7.2 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/b689c2a7b4937062619f435327188612a0040784 Cr-Commit-Position: refs/heads/master@{#428186}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 4

Patch Set 3 : rebase again #

Patch Set 4 : mcasas' comments #

Total comments: 11

Patch Set 5 : Redo changes based on types that have moved to media/capture #

Patch Set 6 : Replace static_cast with EnumTraits<VideoPixelFormat> #

Patch Set 7 : Fix dependency issues #

Total comments: 10

Patch Set 8 : xhwang's comments #

Patch Set 9 : Revert Mojo enum VideoPixelFormat to native #

Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -405 lines) Patch
M chrome/renderer/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_struct_traits.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/common/typemaps.gni View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/common/video_capture.mojom View 1 2 3 4 5 chunks +6 lines, -13 lines 0 comments Download
D content/common/video_capture.typemap View 1 2 3 4 1 chunk +0 lines, -19 lines 0 comments Download
D content/common/video_capture_struct_traits.h View 1 2 3 4 1 chunk +0 lines, -38 lines 0 comments Download
D content/common/video_capture_struct_traits.cc View 1 chunk +0 lines, -26 lines 0 comments Download
M content/public/renderer/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M media/capture/ipc/capture_param_traits.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + media/capture/mojo/BUILD.gn View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
A + media/capture/mojo/OWNERS View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/capture/mojo/typemaps.gni View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A media/capture/mojo/video_capture_types.mojom View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
A media/capture/mojo/video_capture_types.typemap View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
A media/capture/mojo/video_capture_types_typemap_traits.h View 1 2 3 4 5 1 chunk +89 lines, -0 lines 0 comments Download
A media/capture/mojo/video_capture_types_typemap_traits.cc View 1 2 3 4 5 6 7 8 1 chunk +131 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/chromium_bindings_configuration.gni View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M services/video_capture/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M services/video_capture/public/interfaces/BUILD.gn View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D services/video_capture/public/interfaces/typemaps.gni View 1 chunk +0 lines, -8 lines 0 comments Download
M services/video_capture/public/interfaces/video_capture_device_factory.mojom View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M services/video_capture/public/interfaces/video_capture_device_proxy.mojom View 1 2 3 4 1 chunk +4 lines, -16 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_device_proxy.typemap View 1 2 3 4 1 chunk +0 lines, -17 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_device_proxy_traits.h View 1 2 3 4 1 chunk +0 lines, -36 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_device_proxy_traits.cc View 1 chunk +0 lines, -82 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_format.mojom View 1 2 3 4 1 chunk +0 lines, -21 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_format.typemap View 1 2 3 4 1 chunk +0 lines, -20 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_format_traits.h View 1 2 3 4 1 chunk +0 lines, -51 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_format_traits.cc View 1 chunk +0 lines, -50 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 71 (43 generated)
chfremer
mcasas@: PTAL emircan@: Optional Review
4 years, 2 months ago (2016-10-11 23:35:46 UTC) #5
mcasas
lgtm https://codereview.chromium.org/2405423002/diff/20001/media/mojo/interfaces/media_types.mojom File media/mojo/interfaces/media_types.mojom (right): https://codereview.chromium.org/2405423002/diff/20001/media/mojo/interfaces/media_types.mojom#newcode102 media/mojo/interfaces/media_types.mojom:102: // Kept in sync with media::VideoPixelFormat via static_asserts. ...
4 years, 2 months ago (2016-10-12 17:18:26 UTC) #12
chfremer
https://codereview.chromium.org/2405423002/diff/20001/media/mojo/interfaces/media_types.mojom File media/mojo/interfaces/media_types.mojom (right): https://codereview.chromium.org/2405423002/diff/20001/media/mojo/interfaces/media_types.mojom#newcode102 media/mojo/interfaces/media_types.mojom:102: // Kept in sync with media::VideoPixelFormat via static_asserts. On ...
4 years, 2 months ago (2016-10-12 17:39:20 UTC) #15
chfremer
xhwang@ PTAL media/mojo/interfaces/* tsepez@ PTAL security stuff (*.mojom, *_struct_traits.*) avi@ please RS content/common/typemaps.gni and content/common/video_capture.typemap ...
4 years, 2 months ago (2016-10-12 18:04:08 UTC) #17
Avi (use Gerrit)
lgtm stampity stamp
4 years, 2 months ago (2016-10-12 18:08:07 UTC) #18
xhwang
https://codereview.chromium.org/2405423002/diff/60001/media/mojo/interfaces/media_types.typemap File media/mojo/interfaces/media_types.typemap (right): https://codereview.chromium.org/2405423002/diff/60001/media/mojo/interfaces/media_types.typemap#newcode25 media/mojo/interfaces/media_types.typemap:25: "//media/capture", drive-by comment: media/mojo shouldn't depend on media/capture. Does ...
4 years, 2 months ago (2016-10-12 18:22:37 UTC) #19
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2405423002/diff/60001/media/mojo/interfaces/media_types.typemap File media/mojo/interfaces/media_types.typemap (right): https://codereview.chromium.org/2405423002/diff/60001/media/mojo/interfaces/media_types.typemap#newcode25 media/mojo/interfaces/media_types.typemap:25: "//media/capture", On 2016/10/12 at 18:22:37, xhwang wrote: > drive-by ...
4 years, 2 months ago (2016-10-12 18:31:19 UTC) #20
xhwang
https://codereview.chromium.org/2405423002/diff/60001/media/mojo/interfaces/media_types.typemap File media/mojo/interfaces/media_types.typemap (right): https://codereview.chromium.org/2405423002/diff/60001/media/mojo/interfaces/media_types.typemap#newcode25 media/mojo/interfaces/media_types.typemap:25: "//media/capture", On 2016/10/12 18:31:18, Ken Rockot wrote: > On ...
4 years, 2 months ago (2016-10-12 18:47:26 UTC) #21
xhwang
BTW, the CL title is ambiguous, maybe we should at least mention "video capture" in ...
4 years, 2 months ago (2016-10-12 18:54:43 UTC) #22
chfremer
https://codereview.chromium.org/2405423002/diff/60001/media/mojo/interfaces/media_types.typemap File media/mojo/interfaces/media_types.typemap (right): https://codereview.chromium.org/2405423002/diff/60001/media/mojo/interfaces/media_types.typemap#newcode25 media/mojo/interfaces/media_types.typemap:25: "//media/capture", On 2016/10/12 18:47:25, xhwang wrote: > On 2016/10/12 ...
4 years, 2 months ago (2016-10-12 20:07:42 UTC) #25
xhwang
On 2016/10/12 20:07:42, chfremer wrote: > https://codereview.chromium.org/2405423002/diff/60001/media/mojo/interfaces/media_types.typemap > File media/mojo/interfaces/media_types.typemap (right): > > https://codereview.chromium.org/2405423002/diff/60001/media/mojo/interfaces/media_types.typemap#newcode25 > ...
4 years, 2 months ago (2016-10-12 20:16:12 UTC) #26
Tom Sepez
https://codereview.chromium.org/2405423002/diff/60001/media/mojo/interfaces/media_types_typemap_traits.cc File media/mojo/interfaces/media_types_typemap_traits.cc (right): https://codereview.chromium.org/2405423002/diff/60001/media/mojo/interfaces/media_types_typemap_traits.cc#newcode114 media/mojo/interfaces/media_types_typemap_traits.cc:114: out->pixel_format = static_cast<media::VideoPixelFormat>(data.pixel_format()); need to flag out-of-range values here. ...
4 years, 2 months ago (2016-10-12 20:32:08 UTC) #27
chfremer
I have created a CL for moving files, which I would like to land before ...
4 years, 2 months ago (2016-10-21 15:32:50 UTC) #28
chfremer
rockot@: PTAL xhwang@: PTAL tsepez@: PTAL The CL [1] has landed and I am continuing ...
4 years, 1 month ago (2016-10-26 23:07:13 UTC) #47
xhwang
https://codereview.chromium.org/2405423002/diff/180001/chrome/renderer/BUILD.gn File chrome/renderer/BUILD.gn (right): https://codereview.chromium.org/2405423002/diff/180001/chrome/renderer/BUILD.gn#newcode123 chrome/renderer/BUILD.gn:123: "//media/capture:capture", //media/capture is the same https://codereview.chromium.org/2405423002/diff/180001/content/public/renderer/BUILD.gn File content/public/renderer/BUILD.gn (right): ...
4 years, 1 month ago (2016-10-27 04:57:09 UTC) #50
chfremer
https://codereview.chromium.org/2405423002/diff/180001/chrome/renderer/BUILD.gn File chrome/renderer/BUILD.gn (right): https://codereview.chromium.org/2405423002/diff/180001/chrome/renderer/BUILD.gn#newcode123 chrome/renderer/BUILD.gn:123: "//media/capture:capture", On 2016/10/27 04:57:08, xhwang wrote: > //media/capture is ...
4 years, 1 month ago (2016-10-27 17:15:44 UTC) #51
xhwang
https://codereview.chromium.org/2405423002/diff/180001/media/mojo/interfaces/media_types.mojom File media/mojo/interfaces/media_types.mojom (right): https://codereview.chromium.org/2405423002/diff/180001/media/mojo/interfaces/media_types.mojom#newcode31 media/mojo/interfaces/media_types.mojom:31: enum VideoPixelFormat { On 2016/10/27 17:15:44, chfremer wrote: > ...
4 years, 1 month ago (2016-10-27 17:22:37 UTC) #52
Ken Rockot(use gerrit already)
On 2016/10/27 at 17:22:37, xhwang wrote: > https://codereview.chromium.org/2405423002/diff/180001/media/mojo/interfaces/media_types.mojom > File media/mojo/interfaces/media_types.mojom (right): > > https://codereview.chromium.org/2405423002/diff/180001/media/mojo/interfaces/media_types.mojom#newcode31 ...
4 years, 1 month ago (2016-10-27 17:35:09 UTC) #53
chfremer
On 2016/10/27 17:22:37, xhwang wrote: > https://codereview.chromium.org/2405423002/diff/180001/media/mojo/interfaces/media_types.mojom > File media/mojo/interfaces/media_types.mojom (right): > > https://codereview.chromium.org/2405423002/diff/180001/media/mojo/interfaces/media_types.mojom#newcode31 > ...
4 years, 1 month ago (2016-10-27 17:38:42 UTC) #54
xhwang
On 2016/10/27 17:35:09, Ken Rockot wrote: > On 2016/10/27 at 17:22:37, xhwang wrote: > > ...
4 years, 1 month ago (2016-10-27 17:43:09 UTC) #55
chfremer
xhwang@: PTAL https://codereview.chromium.org/2405423002/diff/180001/media/mojo/interfaces/media_types.mojom File media/mojo/interfaces/media_types.mojom (right): https://codereview.chromium.org/2405423002/diff/180001/media/mojo/interfaces/media_types.mojom#newcode31 media/mojo/interfaces/media_types.mojom:31: enum VideoPixelFormat { On 2016/10/27 17:22:37, xhwang ...
4 years, 1 month ago (2016-10-27 20:32:18 UTC) #58
xhwang
lgtm
4 years, 1 month ago (2016-10-27 20:40:34 UTC) #59
chfremer
tsepez@: PTAL *traits.*, *.mojom rockot@: Please RS chromium_bindings_configuration.gni
4 years, 1 month ago (2016-10-27 20:45:21 UTC) #60
Tom Sepez
lgtm
4 years, 1 month ago (2016-10-27 20:54:25 UTC) #61
Ken Rockot(use gerrit already)
rs lgtm
4 years, 1 month ago (2016-10-27 22:47:20 UTC) #64
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/2405423002/220001
4 years, 1 month ago (2016-10-27 22:53:17 UTC) #67
commit-bot: I haz the power
Committed patchset #9 (id:220001)
4 years, 1 month ago (2016-10-27 23:05:17 UTC) #69
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 23:07:44 UTC) #71
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/b689c2a7b4937062619f435327188612a0040784
Cr-Commit-Position: refs/heads/master@{#428186}

Powered by Google App Engine
This is Rietveld 408576698