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

Issue 2531963002: gfx: Fix sending native ozone pixmaps from InProcessCommandBuffer. (Closed)

Created:
4 years ago by sadrul
Modified:
4 years ago
Reviewers:
piman
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gfx: Fix sending native ozone pixmaps from InProcessCommandBuffer. The file-descriptors in NativePixmapHandle need to be dup'ed before then can be sent over mojo IPC from InProcessCommandBuffer. Introduce a convenience function CloneHandleForIPC() so that it can be used by both GpuChannelHost and InProcessCommandBuffer. BUG=643746 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/73794caeafd8fb67b345eae7cea31763274beaec Cr-Commit-Position: refs/heads/master@{#434884}

Patch Set 1 #

Patch Set 2 : fix gn check #

Patch Set 3 : fix non-ozone #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 3

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -91 lines) Patch
M gpu/ipc/client/command_buffer_proxy_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M gpu/ipc/client/gpu_channel_host.h View 1 2 3 1 chunk +1 line, -8 lines 0 comments Download
M gpu/ipc/client/gpu_channel_host.cc View 1 2 3 2 chunks +1 line, -47 lines 0 comments Download
M gpu/ipc/in_process_command_buffer.cc View 1 2 3 2 chunks +3 lines, -31 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.cc View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
M ui/gfx/native_pixmap_handle.h View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M ui/gfx/native_pixmap_handle.cc View 1 2 3 4 5 6 2 chunks +23 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (36 generated)
sadrul
https://codereview.chromium.org/2531963002/diff/120001/gpu/ipc/client/command_buffer_proxy_impl.cc File gpu/ipc/client/command_buffer_proxy_impl.cc (right): https://codereview.chromium.org/2531963002/diff/120001/gpu/ipc/client/command_buffer_proxy_impl.cc#newcode468 gpu/ipc/client/command_buffer_proxy_impl.cc:468: : gfx::CloneHandleForIPC(gpu_memory_buffer->GetHandle()); This may actually change behaviour. Right now, ...
4 years ago (2016-11-27 03:59:06 UTC) #28
piman
LGTM, but one comment below, I think we should skip the IsLost test, actually. https://codereview.chromium.org/2531963002/diff/120001/gpu/ipc/client/command_buffer_proxy_impl.cc ...
4 years ago (2016-11-28 23:42:37 UTC) #31
sadrul
https://codereview.chromium.org/2531963002/diff/120001/gpu/ipc/client/command_buffer_proxy_impl.cc File gpu/ipc/client/command_buffer_proxy_impl.cc (right): https://codereview.chromium.org/2531963002/diff/120001/gpu/ipc/client/command_buffer_proxy_impl.cc#newcode466 gpu/ipc/client/command_buffer_proxy_impl.cc:466: channel_->IsLost() On 2016/11/28 23:42:36, piman wrote: > Actually this ...
4 years ago (2016-11-29 01:53:51 UTC) #34
piman
lgtm
4 years ago (2016-11-29 02:05:38 UTC) #36
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/2531963002/140001
4 years ago (2016-11-29 03:10:45 UTC) #38
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years ago (2016-11-29 04:11:39 UTC) #41
commit-bot: I haz the power
4 years ago (2016-11-29 04:14:02 UTC) #43
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/73794caeafd8fb67b345eae7cea31763274beaec
Cr-Commit-Position: refs/heads/master@{#434884}

Powered by Google App Engine
This is Rietveld 408576698