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

Issue 2272153002: Add ClientNativePixmap multi-planar support. (Closed)

Created:
4 years, 4 months ago by Daniele Castagna
Modified:
4 years, 2 months ago
CC:
chromium-reviews, gurchetansingh, kalyank, ozone-reviews_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, wuchengli
Base URL:
https://chromium.googlesource.com/chromium/src.git@client-native-pixmap-dmabug-multiple-planes
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ClientNativePixmap multi-planar support. ClientNativePixmap, that lets clients map pixmaps in user space, always assumed a pixmap contained only one plane. This CL adds support for multiple-planes. BUG=618516 TBR=posciak TEST=gl_unittests on samus. 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/cdb357b81306f5e8170027d13d931b8e26140405 Committed: https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd Cr-Original-Commit-Position: refs/heads/master@{#420251} Cr-Commit-Position: refs/heads/master@{#421543}

Patch Set 1 #

Patch Set 2 : Fix ClientNativePixmapCast and video_decode_accelerator_unittest. #

Patch Set 3 : Fix ClientNativePixmapCast and video_decode_accelerator_unittest. #

Patch Set 4 : Support only one fd. #

Patch Set 5 : Bug number and rebase on master. #

Patch Set 6 : include cstddef for size_t. #

Patch Set 7 : s/cstddef/stddef.h #

Total comments: 3

Patch Set 8 : Fix fds leak. #

Patch Set 9 : Add NativePixmapPlane::size to ipc struct traits. #

Patch Set 10 : ifdef USE_OZONE for unused variables. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -89 lines) Patch
M chrome/gpu/arc_gpu_video_decode_accelerator.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/exo/wayland/server.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.h View 1 chunk +0 lines, -1 line 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc View 2 chunks +4 lines, -14 lines 0 comments Download
M media/gpu/video_decode_accelerator_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/ipc/gfx_param_traits_macros.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/mojo/buffer_types.mojom View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/mojo/buffer_types_traits.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M ui/gfx/mojo/struct_traits_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -0 lines 0 comments Download
M ui/gfx/native_pixmap_handle.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -2 lines 0 comments Download
M ui/gfx/native_pixmap_handle.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -3 lines 0 comments Download
M ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc View 1 2 3 1 chunk +10 lines, -5 lines 0 comments Download
M ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc View 1 2 1 chunk +10 lines, -3 lines 0 comments Download
M ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc View 1 2 3 4 2 chunks +14 lines, -8 lines 0 comments Download
M ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h View 1 2 3 4 1 chunk +12 lines, -11 lines 0 comments Download
M ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc View 1 2 3 4 2 chunks +35 lines, -24 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer.cc View 1 2 3 4 5 6 7 3 chunks +18 lines, -8 lines 0 comments Download
M ui/ozone/public/client_native_pixmap.h View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 74 (52 generated)
reveman
lgtm
4 years, 4 months ago (2016-08-24 20:54:07 UTC) #5
Daniele Castagna
ccing wuchengli@ and gurchetansingh@. gurchetansingh@, with this patch plus your yv12 minigbm change I can ...
4 years, 4 months ago (2016-08-24 20:59:27 UTC) #6
Daniele Castagna
On 2016/08/24 at 20:59:27, Daniele Castagna wrote: > ccing wuchengli@ and gurchetansingh@. > > gurchetansingh@, ...
4 years, 3 months ago (2016-08-30 17:58:29 UTC) #15
Daniele Castagna
On 2016/08/30 at 17:58:29, Daniele Castagna wrote: > On 2016/08/24 at 20:59:27, Daniele Castagna wrote: ...
4 years, 3 months ago (2016-08-30 18:01:20 UTC) #16
Daniele Castagna
4 years, 3 months ago (2016-09-14 21:18:47 UTC) #32
dnicoara
Looks good, just one thing that I noticed. https://codereview.chromium.org/2272153002/diff/140001/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc File ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc (right): https://codereview.chromium.org/2272153002/diff/140001/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc#newcode86 ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc:86: #if ...
4 years, 3 months ago (2016-09-14 21:47:40 UTC) #33
Daniele Castagna
+spang for ozone since dnicoara is on vacation. https://codereview.chromium.org/2272153002/diff/140001/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc File ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc (right): https://codereview.chromium.org/2272153002/diff/140001/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc#newcode86 ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc:86: #if ...
4 years, 3 months ago (2016-09-19 18:26:40 UTC) #39
Daniele Castagna
+ccameron for ui/gfx/native_pixmap_handle.* +posciak for chrome/gpu/* and media/gpu/*
4 years, 3 months ago (2016-09-19 18:53:00 UTC) #41
ccameron
ui/ stamp lgtm
4 years, 3 months ago (2016-09-19 18:56:27 UTC) #42
spang
lgtm
4 years, 3 months ago (2016-09-21 03:41:25 UTC) #45
Daniele Castagna
On 2016/09/21 at 03:41:25, spang wrote: > lgtm TBRring posciak that is out till next ...
4 years, 3 months ago (2016-09-22 02:00:36 UTC) #47
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/2272153002/160001
4 years, 3 months ago (2016-09-22 02:01:16 UTC) #51
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 3 months ago (2016-09-22 03:24:53 UTC) #52
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/cdb357b81306f5e8170027d13d931b8e26140405 Cr-Commit-Position: refs/heads/master@{#420251}
4 years, 3 months ago (2016-09-22 03:29:18 UTC) #54
Daniele Castagna
A revert of this CL (patchset #8 id:160001) has been created in https://codereview.chromium.org/2361023003/ by dcastagna@chromium.org. ...
4 years, 3 months ago (2016-09-22 23:35:28 UTC) #55
Daniele Castagna
The previous patch broke CrOS since NativePixmapPlane::size was not passed to the renderer during IPCs. ...
4 years, 2 months ago (2016-09-27 19:18:32 UTC) #61
Daniele Castagna
This time actually adding sadrul and rsesek. The previous patch broke CrOS since NativePixmapPlane::size was ...
4 years, 2 months ago (2016-09-27 19:19:30 UTC) #64
Robert Sesek
LGTM
4 years, 2 months ago (2016-09-27 20:39:47 UTC) #65
sadrul
lgtm
4 years, 2 months ago (2016-09-28 16:20:45 UTC) #68
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/2272153002/200001
4 years, 2 months ago (2016-09-28 16:31:23 UTC) #71
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 2 months ago (2016-09-28 16:43:45 UTC) #72
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 16:49:38 UTC) #74
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/3085817730f8c6eacc1b6f02e78a712aefcaaacd
Cr-Commit-Position: refs/heads/master@{#421543}

Powered by Google App Engine
This is Rietveld 408576698