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

Issue 2298003002: gfx: Struct traits for GpuMemoryBufferHandle. (Closed)

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

Description

gfx: Struct traits for GpuMemoryBufferHandle. The remaining type-converter is for GpuMemoryBufferHandle. So introduce a struct-trait for it instead. It also needs struct-traits for NativePixmapPlane and NativePixmapHandle. Remove the type-converters, since they are no longer needed. Also, expose NativePixmapPlane and NativePixmapHandle types to non-ozone platforms, so we don't need some special ozone-only mojom API. BUG=637923 TBR=reveman@ for trivial components/exo change Committed: https://crrev.com/5569cc1d0d05edce033dc92096ad5d5b03067907 Cr-Commit-Position: refs/heads/master@{#416362}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Total comments: 16

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : tot merge #

Total comments: 2

Patch Set 12 : . #

Patch Set 13 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -327 lines) Patch
M components/exo/display.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M services/ui/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -26 lines 0 comments Download
D services/ui/common/gpu_type_converters.h View 1 1 chunk +0 lines, -53 lines 0 comments Download
D services/ui/common/gpu_type_converters.cc View 1 1 chunk +0 lines, -95 lines 0 comments Download
D services/ui/common/gpu_type_converters_unittest.cc View 1 1 chunk +0 lines, -47 lines 0 comments Download
D services/ui/common/mus_common_unittests_app_manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -10 lines 0 comments Download
M services/ui/public/cpp/gpu_service.cc View 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/public/interfaces/gpu_service.mojom View 1 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/gpu_service_proxy.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M tools/determinism/compare_build_artifacts.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/BUILD.gn View 1 2 2 chunks +2 lines, -7 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/ipc/gfx_param_traits_macros.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/mojo/buffer_types.mojom View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -0 lines 0 comments Download
M ui/gfx/mojo/buffer_types.typemap View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M ui/gfx/mojo/buffer_types_traits.h View 1 2 3 4 5 6 7 8 1 chunk +68 lines, -0 lines 0 comments Download
A ui/gfx/mojo/buffer_types_traits.cc View 1 2 3 4 5 6 7 8 1 chunk +100 lines, -0 lines 0 comments Download
M ui/gfx/mojo/struct_traits_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +35 lines, -0 lines 0 comments Download
M ui/gfx/mojo/traits_test_service.mojom View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
A + ui/gfx/native_pixmap_handle.h View 1 2 2 chunks +10 lines, -5 lines 0 comments Download
A + ui/gfx/native_pixmap_handle.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
D ui/gfx/native_pixmap_handle_ozone.h View 1 2 1 chunk +0 lines, -47 lines 0 comments Download
D ui/gfx/native_pixmap_handle_ozone.cc View 1 2 1 chunk +0 lines, -24 lines 0 comments Download
M ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/drm_thread.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/public/native_pixmap.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 86 (63 generated)
sadrul
rjkroege@ for native_pixmap_handle_ozone.cc => native_pixmap_handle.cc change. tsepez@ for the mojoms, typemaps, and struct-traits.
4 years, 3 months ago (2016-08-31 07:31:42 UTC) #29
Tom Sepez
https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/gfx.gyp File ui/gfx/gfx.gyp (right): https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/gfx.gyp#newcode103 ui/gfx/gfx.gyp:103: "win/physical_size.cc", nit: alphabetize. https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/mojo/buffer_types.mojom File ui/gfx/mojo/buffer_types.mojom (right): https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/mojo/buffer_types.mojom#newcode55 ui/gfx/mojo/buffer_types.mojom:55: ...
4 years, 3 months ago (2016-08-31 16:52:36 UTC) #32
Tom Sepez
https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/mojo/buffer_types.mojom File ui/gfx/mojo/buffer_types.mojom (right): https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/mojo/buffer_types.mojom#newcode65 ui/gfx/mojo/buffer_types.mojom:65: array<NativePixmapPlane> planes; Anyways, where do we check upon de-serialization ...
4 years, 3 months ago (2016-08-31 17:04:15 UTC) #33
Fady Samuel
https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/mojo/buffer_types_traits.cc File ui/gfx/mojo/buffer_types_traits.cc (right): https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/mojo/buffer_types_traits.cc#newcode31 ui/gfx/mojo/buffer_types_traits.cc:31: if (!data.ReadFds(&handles)) GetFdsDataView and iterate directly inside the buffer ...
4 years, 3 months ago (2016-08-31 17:06:02 UTC) #35
sadrul
https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/gfx.gyp File ui/gfx/gfx.gyp (right): https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/gfx.gyp#newcode103 ui/gfx/gfx.gyp:103: "win/physical_size.cc", On 2016/08/31 16:52:36, Tom Sepez wrote: > nit: ...
4 years, 3 months ago (2016-08-31 17:13:19 UTC) #36
Tom Sepez
> It doesn't look like we actually check that anywhere currently. The host (i.e. > ...
4 years, 3 months ago (2016-08-31 17:15:30 UTC) #37
spang
https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/mojo/buffer_types.mojom File ui/gfx/mojo/buffer_types.mojom (right): https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/mojo/buffer_types.mojom#newcode55 ui/gfx/mojo/buffer_types.mojom:55: int32 stride; On 2016/08/31 16:52:36, Tom Sepez wrote: > ...
4 years, 3 months ago (2016-08-31 19:35:57 UTC) #39
sadrul
https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/mojo/buffer_types.mojom File ui/gfx/mojo/buffer_types.mojom (right): https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/mojo/buffer_types.mojom#newcode55 ui/gfx/mojo/buffer_types.mojom:55: int32 stride; On 2016/08/31 16:52:36, Tom Sepez wrote: > ...
4 years, 3 months ago (2016-08-31 19:53:20 UTC) #42
rjkroege
https://codereview.chromium.org/2298003002/diff/140001/services/ui/common/BUILD.gn File services/ui/common/BUILD.gn (right): https://codereview.chromium.org/2298003002/diff/140001/services/ui/common/BUILD.gn#newcode60 services/ui/common/BUILD.gn:60: sources = [] so there's no test? this looks ...
4 years, 3 months ago (2016-08-31 19:54:14 UTC) #43
sadrul
https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/mojo/buffer_types.mojom File ui/gfx/mojo/buffer_types.mojom (right): https://codereview.chromium.org/2298003002/diff/140001/ui/gfx/mojo/buffer_types.mojom#newcode65 ui/gfx/mojo/buffer_types.mojom:65: array<NativePixmapPlane> planes; On 2016/08/31 19:54:14, rjkroege wrote: > On ...
4 years, 3 months ago (2016-08-31 20:01:28 UTC) #44
sadrul
+reveman@ here too. From https://codereview.chromium.org/2298353002/: it sounds like we do want to support signed strides. ...
4 years, 3 months ago (2016-09-01 00:58:59 UTC) #48
Tom Sepez
> It also looks like (https://codereview.chromium.org/2298003002/#msg44) we can't > really do validation during deserialization because ...
4 years, 3 months ago (2016-09-01 16:17:38 UTC) #49
sadrul
I have put up https://codereview.chromium.org/2302053003/ for the validation. I believe that addresses all the outstanding ...
4 years, 3 months ago (2016-09-01 20:37:35 UTC) #50
Tom Sepez
lgtm
4 years, 3 months ago (2016-09-01 20:39:27 UTC) #51
sadrul
+sky@ for services/ui owner
4 years, 3 months ago (2016-09-02 02:58:23 UTC) #59
sky
LGTM assuming the test I mention isn't running on any bots. https://codereview.chromium.org/2298003002/diff/200001/services/ui/common/BUILD.gn File services/ui/common/BUILD.gn (left): ...
4 years, 3 months ago (2016-09-02 14:35:09 UTC) #62
sadrul
+dpranke@ for tools/determinism update. https://codereview.chromium.org/2298003002/diff/200001/services/ui/common/BUILD.gn File services/ui/common/BUILD.gn (left): https://codereview.chromium.org/2298003002/diff/200001/services/ui/common/BUILD.gn#oldcode61 services/ui/common/BUILD.gn:61: test("mus_common_unittests") { On 2016/09/02 14:35:08, ...
4 years, 3 months ago (2016-09-02 14:45:59 UTC) #66
Dirk Pranke
lgtm
4 years, 3 months ago (2016-09-02 16:51:00 UTC) #69
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/2298003002/240001
4 years, 3 months ago (2016-09-02 20:32:45 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/252410)
4 years, 3 months ago (2016-09-02 20:38:15 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/2298003002/240001
4 years, 3 months ago (2016-09-02 22:03:40 UTC) #82
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 3 months ago (2016-09-02 22:09:35 UTC) #84
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 22:12:00 UTC) #86
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/5569cc1d0d05edce033dc92096ad5d5b03067907
Cr-Commit-Position: refs/heads/master@{#416362}

Powered by Google App Engine
This is Rietveld 408576698