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

Issue 1837703002: gpu: Export/import buffers created by Ozone GMB factory. (Closed)

Created:
4 years, 8 months ago by reveman
Modified:
4 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, dnicoara, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Export/import buffers created by Ozone GMB factory. This allows GMBs created by one instance of the GPU process to be used with another instance. It also allows the client to synchronize creation of one buffer with destruction of another buffer as they are now created when imported for CHROMIUM_image. Note: GMB factory creation of buffer from handle can be eliminated as a follow up to this. BUG=597932 , b/29239573 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/57111c9ffef56e96560373618aa02756b5194b36 Cr-Commit-Position: refs/heads/master@{#400730}

Patch Set 1 #

Total comments: 3

Patch Set 2 : gpu: Export/import buffers created by Ozone GMB factory. #

Total comments: 8

Patch Set 3 : nits #

Total comments: 6

Patch Set 4 : check result of dup #

Total comments: 2

Patch Set 5 : move dup() to ShareGpuMemoryBufferToGpuProcess #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -63 lines) Patch
M gpu/ipc/client/gpu_channel_host.cc View 1 2 3 4 1 chunk +24 lines, -1 line 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.h View 1 3 1 chunk +5 lines, -1 line 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc View 1 2 3 4 3 chunks +30 lines, -3 lines 0 comments Download
M gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.h View 1 3 chunks +1 line, -8 lines 0 comments Download
M gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.cc View 1 2 4 chunks +12 lines, -45 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer.cc View 1 2 1 chunk +35 lines, -5 lines 0 comments Download

Messages

Total messages: 44 (16 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837703002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837703002/1
4 years, 8 months ago (2016-03-27 09:30:07 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-27 10:14:50 UTC) #4
reveman
4 years, 8 months ago (2016-03-28 09:33:29 UTC) #6
reveman
fyi, follow up cleanup that makes import of buffers more efficient: https://codereview.chromium.org/1835173003
4 years, 8 months ago (2016-03-28 12:25:31 UTC) #7
piman
https://codereview.chromium.org/1837703002/diff/1/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc File content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1837703002/diff/1/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc#newcode78 content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc:78: handle.native_pixmap_handle); Is this safe to do if native_pixmap_handle is ...
4 years, 8 months ago (2016-03-28 16:41:32 UTC) #8
reveman
https://codereview.chromium.org/1837703002/diff/1/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc File content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1837703002/diff/1/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc#newcode78 content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc:78: handle.native_pixmap_handle); On 2016/03/28 at 16:41:31, piman wrote: > Is ...
4 years, 8 months ago (2016-03-28 17:38:33 UTC) #9
piman
+mdempsky to comment about the security implications https://codereview.chromium.org/1837703002/diff/1/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc File content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1837703002/diff/1/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc#newcode78 content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc:78: handle.native_pixmap_handle); On ...
4 years, 8 months ago (2016-03-28 20:42:29 UTC) #11
reveman
On 2016/03/28 at 20:42:29, piman wrote: > +mdempsky to comment about the security implications > ...
4 years, 8 months ago (2016-03-29 09:14:45 UTC) #12
reveman
+dcastagna This will allow Arc++ to survive GPU process crashes as buffer ownership is now ...
4 years, 6 months ago (2016-06-16 20:59:32 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837703002/20001
4 years, 6 months ago (2016-06-16 21:01:00 UTC) #18
Daniele Castagna
https://codereview.chromium.org/1837703002/diff/20001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc File gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1837703002/diff/20001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc#newcode34 gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc:34: base::ScopedFD fd) nit: Make this rvalue reference or pointer, ...
4 years, 6 months ago (2016-06-16 21:14:26 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/154106) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 6 months ago (2016-06-16 21:16:02 UTC) #21
reveman
https://codereview.chromium.org/1837703002/diff/20001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc File gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1837703002/diff/20001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc#newcode34 gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc:34: base::ScopedFD fd) On 2016/06/16 at 21:14:26, Daniele Castagna wrote: ...
4 years, 6 months ago (2016-06-16 21:46:20 UTC) #22
Daniele Castagna
lgtm
4 years, 6 months ago (2016-06-16 23:14:02 UTC) #23
reveman
+dnicoara mdempsky, dnicoara, please take a look.
4 years, 6 months ago (2016-06-16 23:14:58 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837703002/40001
4 years, 6 months ago (2016-06-16 23:16:30 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-17 00:34:14 UTC) #29
mdempsky
LGTM for security https://codereview.chromium.org/1837703002/diff/40001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc File gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1837703002/diff/40001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc#newcode34 gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc:34: base::ScopedFD&& fd) nit: I think just ...
4 years, 6 months ago (2016-06-17 19:38:19 UTC) #30
reveman
+spang for ui/ozone/platform/drm/gpu ui/ozone part is really just a revert of: https://codereview.chromium.org/1834643002
4 years, 6 months ago (2016-06-17 19:39:24 UTC) #32
spang
lgtm https://codereview.chromium.org/1837703002/diff/40001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc File gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1837703002/diff/40001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc#newcode34 gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc:34: base::ScopedFD&& fd) On 2016/06/17 19:38:19, mdempsky wrote: > ...
4 years, 6 months ago (2016-06-17 20:00:25 UTC) #33
reveman
https://codereview.chromium.org/1837703002/diff/40001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc File gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1837703002/diff/40001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc#newcode34 gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc:34: base::ScopedFD&& fd) On 2016/06/17 at 20:00:25, spang wrote: > ...
4 years, 6 months ago (2016-06-17 20:34:02 UTC) #34
spang
https://codereview.chromium.org/1837703002/diff/40001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc File gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1837703002/diff/40001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc#newcode34 gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc:34: base::ScopedFD&& fd) On 2016/06/17 20:34:02, reveman wrote: > On ...
4 years, 6 months ago (2016-06-17 20:52:32 UTC) #35
piman
https://codereview.chromium.org/1837703002/diff/60001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc File gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1837703002/diff/60001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc#newcode139 gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc:139: base::ScopedFD scoped_fd(HANDLE_EINTR(dup(fd_.get()))); Should this really dup? I'm concerned that ...
4 years, 6 months ago (2016-06-20 15:03:13 UTC) #36
reveman
ptal https://codereview.chromium.org/1837703002/diff/60001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc File gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1837703002/diff/60001/gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc#newcode139 gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc:139: base::ScopedFD scoped_fd(HANDLE_EINTR(dup(fd_.get()))); On 2016/06/20 at 15:03:13, piman OOO ...
4 years, 6 months ago (2016-06-20 16:29:21 UTC) #37
piman
lgtm
4 years, 6 months ago (2016-06-20 16:39:43 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837703002/80001
4 years, 6 months ago (2016-06-20 16:43:02 UTC) #41
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-20 18:17:13 UTC) #42
commit-bot: I haz the power
4 years, 6 months ago (2016-06-20 18:26:34 UTC) #44
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/57111c9ffef56e96560373618aa02756b5194b36
Cr-Commit-Position: refs/heads/master@{#400730}

Powered by Google App Engine
This is Rietveld 408576698