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

Issue 2147693002: Struct traits used by GpuInfo (Closed)

Created:
4 years, 5 months ago by Alex Z.
Modified:
4 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Struct traits used by GpuInfo This CL contains struct traits of the structs used by gpu::GPUInfo BUG=622707 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/a639771dc3abd8e8030757c3c04e26a37c86348c Cr-Commit-Position: refs/heads/master@{#410053}

Patch Set 1 : base::Version struct traits #

Patch Set 2 : "base::Version struct traits implementation" #

Patch Set 3 : base::Version unit test #

Patch Set 4 : Fixed unit test #

Patch Set 5 : DxDiagNode #

Patch Set 6 : gpu::VideoCodecProfile enum traits #

Patch Set 7 : VideoDecodeAcceleratorSupportedProfile #

Patch Set 8 : Format #

Patch Set 9 : VideoDecodeAcceleratorCapabilities #

Patch Set 10 : Removed unnecessary include #

Patch Set 11 : VideoEncodeAcceleratorSupportedProfile #

Total comments: 8

Patch Set 12 : Changed according to comments #

Total comments: 20

Patch Set 13 : Changed according to comments #

Total comments: 1

Patch Set 14 : Fixed a typo #

Total comments: 14

Patch Set 15 : Changed according to comments #

Total comments: 2

Patch Set 16 : Construct base::Version from a vector of components #

Total comments: 2

Patch Set 17 : Moved DxDiagNode struct traits Read() to a cc file #

Total comments: 2

Patch Set 18 : Moved Read() to .cc file #

Total comments: 21

Patch Set 19 : Changed comment to be more readable #

Patch Set 20 : Merge conflicts #

Patch Set 21 : Merge conflicts #

Patch Set 22 : Added //ui/gfx/geometry/mojo to public_deps of gpu/ipc/common:interfaces #

Total comments: 1

Patch Set 23 : The right public_deps #

Unified diffs Side-by-side diffs Delta from patch set Stats (+597 lines, -16 lines) Patch
M gpu/ipc/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +5 lines, -0 lines 0 comments Download
A + gpu/ipc/common/dx_diag_node.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -4 lines 0 comments Download
A gpu/ipc/common/dx_diag_node.typemap View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +11 lines, -0 lines 0 comments Download
A gpu/ipc/common/dx_diag_node_struct_traits.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +29 lines, -0 lines 0 comments Download
A gpu/ipc/common/dx_diag_node_struct_traits.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +16 lines, -0 lines 0 comments Download
M gpu/ipc/common/gpu_info.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +50 lines, -1 line 0 comments Download
M gpu/ipc/common/gpu_info.typemap View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -2 lines 0 comments Download
M gpu/ipc/common/gpu_info_struct_traits.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +76 lines, -0 lines 0 comments Download
M gpu/ipc/common/gpu_info_struct_traits.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +152 lines, -0 lines 0 comments Download
M gpu/ipc/common/struct_traits_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +96 lines, -0 lines 0 comments Download
M gpu/ipc/common/traits_test_service.mojom View 1 2 3 4 5 6 7 8 9 10 3 chunks +19 lines, -0 lines 0 comments Download
M gpu/ipc/common/typemaps.gni View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M mojo/common/BUILD.gn View 1 2 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M mojo/common/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +4 lines, -2 lines 0 comments Download
M mojo/common/common_custom_types.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/common/common_custom_types.typemap View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +9 lines, -1 line 0 comments Download
A mojo/common/common_custom_types_struct_traits.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +25 lines, -0 lines 0 comments Download
A mojo/common/common_custom_types_struct_traits.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +32 lines, -0 lines 0 comments Download
A + mojo/common/common_custom_types_struct_traits_unittest.cc View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A mojo/common/struct_traits_unittest.cc View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
A + mojo/common/traits_test_service.mojom View 1 2 1 chunk +4 lines, -7 lines 0 comments Download

Messages

Total messages: 113 (63 generated)
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names without "master." prefix is ...
4 years, 5 months ago (2016-07-13 19:34:04 UTC) #5
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names without "master." prefix is ...
4 years, 5 months ago (2016-07-13 20:13:11 UTC) #10
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-13 21:02:04 UTC) #11
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-14 14:49:17 UTC) #16
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-14 17:59:48 UTC) #19
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-15 15:15:58 UTC) #24
Alex Z.
sky@: Please review the changes under mojo/common fsamuel@: Please review the changes in the struct ...
4 years, 5 months ago (2016-07-15 17:42:13 UTC) #28
Fady Samuel
https://codereview.chromium.org/2147693002/diff/200001/gpu/ipc/common/gpu_info_struct_traits.cc File gpu/ipc/common/gpu_info_struct_traits.cc (right): https://codereview.chromium.org/2147693002/diff/200001/gpu/ipc/common/gpu_info_struct_traits.cc#newcode64 gpu/ipc/common/gpu_info_struct_traits.cc:64: return static_cast<gpu::mojom::VideoCodecProfile>(video_codec_profile); Use switch statement. https://codereview.chromium.org/2147693002/diff/200001/gpu/ipc/common/gpu_info_struct_traits.cc#newcode71 gpu/ipc/common/gpu_info_struct_traits.cc:71: *out = ...
4 years, 5 months ago (2016-07-15 18:08:38 UTC) #29
Alex Z.
https://codereview.chromium.org/2147693002/diff/200001/gpu/ipc/common/gpu_info_struct_traits.cc File gpu/ipc/common/gpu_info_struct_traits.cc (right): https://codereview.chromium.org/2147693002/diff/200001/gpu/ipc/common/gpu_info_struct_traits.cc#newcode64 gpu/ipc/common/gpu_info_struct_traits.cc:64: return static_cast<gpu::mojom::VideoCodecProfile>(video_codec_profile); On 2016/07/15 18:08:38, Fady Samuel wrote: > ...
4 years, 5 months ago (2016-07-18 12:50:05 UTC) #30
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-18 12:50:26 UTC) #33
Fady Samuel
https://codereview.chromium.org/2147693002/diff/220001/gpu/ipc/common/dx_diag_node.mojom File gpu/ipc/common/dx_diag_node.mojom (right): https://codereview.chromium.org/2147693002/diff/220001/gpu/ipc/common/dx_diag_node.mojom#newcode7 gpu/ipc/common/dx_diag_node.mojom:7: struct DxDiagNode { nit: add comment to path to ...
4 years, 5 months ago (2016-07-18 15:59:39 UTC) #36
sky
sky->rockot
4 years, 5 months ago (2016-07-18 16:41:36 UTC) #38
Alex Z.
https://codereview.chromium.org/2147693002/diff/220001/gpu/ipc/common/dx_diag_node.mojom File gpu/ipc/common/dx_diag_node.mojom (right): https://codereview.chromium.org/2147693002/diff/220001/gpu/ipc/common/dx_diag_node.mojom#newcode7 gpu/ipc/common/dx_diag_node.mojom:7: struct DxDiagNode { On 2016/07/18 15:59:39, Fady Samuel wrote: ...
4 years, 5 months ago (2016-07-19 15:13:19 UTC) #39
Fady Samuel
https://codereview.chromium.org/2147693002/diff/240001/gpu/ipc/common/gpu_info.mojom File gpu/ipc/common/gpu_info.mojom (right): https://codereview.chromium.org/2147693002/diff/240001/gpu/ipc/common/gpu_info.mojom#newcode19 gpu/ipc/common/gpu_info.mojom:19: gpu::CollectInfoResult This isn't a comment? I don't think this ...
4 years, 5 months ago (2016-07-19 16:47:40 UTC) #40
Fady Samuel
https://codereview.chromium.org/2147693002/diff/260001/gpu/ipc/common/OWNERS File gpu/ipc/common/OWNERS (right): https://codereview.chromium.org/2147693002/diff/260001/gpu/ipc/common/OWNERS#newcode13 gpu/ipc/common/OWNERS:13: per-file *.mojom=set noparent Why is this being added again? ...
4 years, 5 months ago (2016-07-19 16:48:47 UTC) #41
Alex Z.
https://codereview.chromium.org/2147693002/diff/260001/gpu/ipc/common/OWNERS File gpu/ipc/common/OWNERS (right): https://codereview.chromium.org/2147693002/diff/260001/gpu/ipc/common/OWNERS#newcode13 gpu/ipc/common/OWNERS:13: per-file *.mojom=set noparent On 2016/07/19 16:48:47, Fady Samuel wrote: ...
4 years, 5 months ago (2016-07-19 17:27:12 UTC) #42
Fady Samuel
https://codereview.chromium.org/2147693002/diff/280001/mojo/common/common_custom_types_struct_traits.cc File mojo/common/common_custom_types_struct_traits.cc (right): https://codereview.chromium.org/2147693002/diff/280001/mojo/common/common_custom_types_struct_traits.cc#newcode15 mojo/common/common_custom_types_struct_traits.cc:15: std::string ConstructVersionString(const std::vector<uint32_t>& components) { I just looked at ...
4 years, 5 months ago (2016-07-19 17:33:04 UTC) #43
Alex Z.
https://codereview.chromium.org/2147693002/diff/280001/mojo/common/common_custom_types_struct_traits.cc File mojo/common/common_custom_types_struct_traits.cc (right): https://codereview.chromium.org/2147693002/diff/280001/mojo/common/common_custom_types_struct_traits.cc#newcode15 mojo/common/common_custom_types_struct_traits.cc:15: std::string ConstructVersionString(const std::vector<uint32_t>& components) { On 2016/07/19 17:33:03, Fady ...
4 years, 4 months ago (2016-07-26 14:38:55 UTC) #44
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 4 months ago (2016-07-26 14:39:34 UTC) #47
Fady Samuel
https://codereview.chromium.org/2147693002/diff/300001/gpu/ipc/common/dx_diag_node_struct_traits.h File gpu/ipc/common/dx_diag_node_struct_traits.h (right): https://codereview.chromium.org/2147693002/diff/300001/gpu/ipc/common/dx_diag_node_struct_traits.h#newcode14 gpu/ipc/common/dx_diag_node_struct_traits.h:14: static bool Read(gpu::mojom::DxDiagNodeDataView data, gpu::DxDiagNode* out) { Move this ...
4 years, 4 months ago (2016-07-26 14:43:41 UTC) #48
Fady Samuel
4 years, 4 months ago (2016-07-26 14:43:42 UTC) #49
Alex Z.
https://codereview.chromium.org/2147693002/diff/300001/gpu/ipc/common/dx_diag_node_struct_traits.h File gpu/ipc/common/dx_diag_node_struct_traits.h (right): https://codereview.chromium.org/2147693002/diff/300001/gpu/ipc/common/dx_diag_node_struct_traits.h#newcode14 gpu/ipc/common/dx_diag_node_struct_traits.h:14: static bool Read(gpu::mojom::DxDiagNodeDataView data, gpu::DxDiagNode* out) { On 2016/07/26 ...
4 years, 4 months ago (2016-07-26 15:28:06 UTC) #52
Fady Samuel
lgtm once my comment is addressed. https://codereview.chromium.org/2147693002/diff/320001/gpu/ipc/common/gpu_info_struct_traits.h File gpu/ipc/common/gpu_info_struct_traits.h (right): https://codereview.chromium.org/2147693002/diff/320001/gpu/ipc/common/gpu_info_struct_traits.h#newcode90 gpu/ipc/common/gpu_info_struct_traits.h:90: static bool Read(gpu::mojom::VideoDecodeAcceleratorCapabilitiesDataView ...
4 years, 4 months ago (2016-07-26 15:31:56 UTC) #53
Alex Z.
https://codereview.chromium.org/2147693002/diff/320001/gpu/ipc/common/gpu_info_struct_traits.h File gpu/ipc/common/gpu_info_struct_traits.h (right): https://codereview.chromium.org/2147693002/diff/320001/gpu/ipc/common/gpu_info_struct_traits.h#newcode90 gpu/ipc/common/gpu_info_struct_traits.h:90: static bool Read(gpu::mojom::VideoDecodeAcceleratorCapabilitiesDataView data, On 2016/07/26 15:31:56, Fady Samuel ...
4 years, 4 months ago (2016-07-26 15:37:25 UTC) #55
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 4 months ago (2016-07-26 15:37:41 UTC) #57
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2147693002/diff/340001/mojo/common/common_custom_types.mojom File mojo/common/common_custom_types.mojom (right): https://codereview.chromium.org/2147693002/diff/340001/mojo/common/common_custom_types.mojom#newcode26 mojo/common/common_custom_types.mojom:26: // base::Version These comments aren't terribly useful as-is. Maybe: ...
4 years, 4 months ago (2016-07-27 20:05:25 UTC) #65
Ken Rockot(use gerrit already)
Also please make the CL description more meaningful
4 years, 4 months ago (2016-07-27 20:05:47 UTC) #66
dcheng
https://codereview.chromium.org/2147693002/diff/340001/gpu/ipc/common/gpu_info.mojom File gpu/ipc/common/gpu_info.mojom (right): https://codereview.chromium.org/2147693002/diff/340001/gpu/ipc/common/gpu_info.mojom#newcode29 gpu/ipc/common/gpu_info.mojom:29: VIDEO_CODEC_PROFILE_UNKNOWN = -1, Nit: Just call this UNKNOWN, mojo ...
4 years, 4 months ago (2016-07-28 02:09:39 UTC) #67
Alex Z.
https://codereview.chromium.org/2147693002/diff/340001/gpu/ipc/common/gpu_info.mojom File gpu/ipc/common/gpu_info.mojom (right): https://codereview.chromium.org/2147693002/diff/340001/gpu/ipc/common/gpu_info.mojom#newcode29 gpu/ipc/common/gpu_info.mojom:29: VIDEO_CODEC_PROFILE_UNKNOWN = -1, On 2016/07/28 02:09:38, dcheng (OOO Aug ...
4 years, 4 months ago (2016-07-28 19:40:44 UTC) #69
Ken Rockot(use gerrit already)
lgtm % more verbose CL description https://codereview.chromium.org/2147693002/diff/340001/mojo/common/common_custom_types.typemap File mojo/common/common_custom_types.typemap (right): https://codereview.chromium.org/2147693002/diff/340001/mojo/common/common_custom_types.typemap#newcode16 mojo/common/common_custom_types.typemap:16: sources = [ ...
4 years, 4 months ago (2016-07-28 19:46:36 UTC) #70
dcheng
https://codereview.chromium.org/2147693002/diff/340001/gpu/ipc/common/gpu_info_struct_traits.cc File gpu/ipc/common/gpu_info_struct_traits.cc (right): https://codereview.chromium.org/2147693002/diff/340001/gpu/ipc/common/gpu_info_struct_traits.cc#newcode189 gpu/ipc/common/gpu_info_struct_traits.cc:189: data.ReadMinResolution(&out->min_resolution); On 2016/07/28 19:40:43, StarAZ1 wrote: > On 2016/07/28 ...
4 years, 4 months ago (2016-07-29 04:05:40 UTC) #71
Alex Z.
https://codereview.chromium.org/2147693002/diff/340001/gpu/ipc/common/gpu_info_struct_traits.cc File gpu/ipc/common/gpu_info_struct_traits.cc (right): https://codereview.chromium.org/2147693002/diff/340001/gpu/ipc/common/gpu_info_struct_traits.cc#newcode189 gpu/ipc/common/gpu_info_struct_traits.cc:189: data.ReadMinResolution(&out->min_resolution); On 2016/07/29 04:05:39, dcheng (OOO Aug 1 - ...
4 years, 4 months ago (2016-08-03 12:58:09 UTC) #73
dcheng
LGTM, since we already have an IPC version. As we implement the Mojo side of ...
4 years, 4 months ago (2016-08-04 01:43:09 UTC) #74
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/2147693002/360001
4 years, 4 months ago (2016-08-04 12:36:59 UTC) #77
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/231025)
4 years, 4 months ago (2016-08-04 12:39:39 UTC) #79
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/2147693002/360001
4 years, 4 months ago (2016-08-04 12:59:26 UTC) #81
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/231032) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 4 months ago (2016-08-04 13:02:32 UTC) #83
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/2147693002/380001
4 years, 4 months ago (2016-08-04 13:22:58 UTC) #86
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/2147693002/400001
4 years, 4 months ago (2016-08-04 13:47:29 UTC) #90
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/107111)
4 years, 4 months ago (2016-08-04 14:16:54 UTC) #92
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/2147693002/420001
4 years, 4 months ago (2016-08-04 15:35:29 UTC) #95
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/107168)
4 years, 4 months ago (2016-08-04 16:05:19 UTC) #97
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2147693002/diff/420001/gpu/ipc/common/BUILD.gn File gpu/ipc/common/BUILD.gn (right): https://codereview.chromium.org/2147693002/diff/420001/gpu/ipc/common/BUILD.gn#newcode141 gpu/ipc/common/BUILD.gn:141: "//ui/gfx/geometry/mojo", wrong target. this is test_interfaces :)
4 years, 4 months ago (2016-08-04 16:07:11 UTC) #98
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/2147693002/440001
4 years, 4 months ago (2016-08-04 16:55:30 UTC) #101
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/204252)
4 years, 4 months ago (2016-08-04 18:01:52 UTC) #103
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/2147693002/440001
4 years, 4 months ago (2016-08-04 19:46:19 UTC) #105
commit-bot: I haz the power
Try jobs failed on following builders: mac_optional_gpu_tests_rel on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_optional_gpu_tests_rel/builds/2488)
4 years, 4 months ago (2016-08-04 21:14:52 UTC) #107
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/2147693002/440001
4 years, 4 months ago (2016-08-05 13:44:11 UTC) #109
commit-bot: I haz the power
Committed patchset #23 (id:440001)
4 years, 4 months ago (2016-08-05 14:10:54 UTC) #111
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 14:12:49 UTC) #113
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/a639771dc3abd8e8030757c3c04e26a37c86348c
Cr-Commit-Position: refs/heads/master@{#410053}

Powered by Google App Engine
This is Rietveld 408576698