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

Issue 2503113002: mus: Get GpuMemoryBuffer from gpu process when possible. (Closed)

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

Description

mus: Get GpuMemoryBuffer from gpu process when possible. From the window server (i.e. gpu-host process), try to create the GpuMemoryBuffer from the gpu process first, before falling back to using shared memory. To do this correctly, it is necessary to associate these memory buffers to unique client-id of each client. So create a separate mojom::GpuService instance for each client (instead of using the same instance for handling requests from all clients). 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/0b7867d1681e539c50e5cf075baf6863dd128055 Cr-Commit-Position: refs/heads/master@{#436874}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : self nits #

Patch Set 7 : . #

Total comments: 13

Patch Set 8 : . #

Total comments: 1

Patch Set 9 : . #

Total comments: 5

Patch Set 10 : . #

Total comments: 6

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -93 lines) Patch
M services/ui/common/mus_gpu_memory_buffer_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +20 lines, -6 lines 0 comments Download
M services/ui/common/mus_gpu_memory_buffer_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +42 lines, -21 lines 0 comments Download
M services/ui/ws/gpu_service_proxy.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -22 lines 0 comments Download
M services/ui/ws/gpu_service_proxy.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +73 lines, -44 lines 0 comments Download

Messages

Total messages: 83 (59 generated)
sadrul
4 years, 1 month ago (2016-11-16 21:43:38 UTC) #22
sadrul
I should note that I am working on sharing code between the MusGpuMemoryBufferManager and BrowserGpuMemoryBufferManager, ...
4 years, 1 month ago (2016-11-17 15:49:00 UTC) #29
sadrul
On 2016/11/17 15:49:00, sadrul wrote: > I should note that I am working on sharing ...
4 years, 1 month ago (2016-11-18 22:43:39 UTC) #30
reveman
https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/gpu_service_proxy.cc File services/ui/ws/gpu_service_proxy.cc (right): https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/gpu_service_proxy.cc#newcode31 services/ui/ws/gpu_service_proxy.cc:31: class GpuServiceImpl : public mojom::GpuService { I'm confused by ...
4 years, 1 month ago (2016-11-22 08:18:56 UTC) #31
sadrul
https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/gpu_service_proxy.cc File services/ui/ws/gpu_service_proxy.cc (right): https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/gpu_service_proxy.cc#newcode31 services/ui/ws/gpu_service_proxy.cc:31: class GpuServiceImpl : public mojom::GpuService { On 2016/11/22 08:18:56, ...
4 years, 1 month ago (2016-11-22 18:45:41 UTC) #32
reveman
https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/gpu_service_proxy.cc File services/ui/ws/gpu_service_proxy.cc (right): https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/gpu_service_proxy.cc#newcode31 services/ui/ws/gpu_service_proxy.cc:31: class GpuServiceImpl : public mojom::GpuService { On 2016/11/22 at ...
4 years, 1 month ago (2016-11-22 23:25:04 UTC) #33
sadrul
https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/gpu_service_proxy.cc File services/ui/ws/gpu_service_proxy.cc (right): https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/gpu_service_proxy.cc#newcode31 services/ui/ws/gpu_service_proxy.cc:31: class GpuServiceImpl : public mojom::GpuService { On 2016/11/22 23:25:04, ...
4 years ago (2016-11-24 02:02:41 UTC) #34
sadrul
https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/mus_gpu_memory_buffer_manager.h File services/ui/ws/mus_gpu_memory_buffer_manager.h (right): https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/mus_gpu_memory_buffer_manager.h#newcode64 services/ui/ws/mus_gpu_memory_buffer_manager.h:64: std::unordered_map<int, NativeBuffers> native_buffers_; On 2016/11/24 02:02:41, sadrul wrote: > ...
4 years ago (2016-11-24 03:34:05 UTC) #35
sadrul
I have merged with the tot changes. PTAL. https://codereview.chromium.org/2503113002/diff/140001/services/ui/common/mus_gpu_memory_buffer_manager.h File services/ui/common/mus_gpu_memory_buffer_manager.h (right): https://codereview.chromium.org/2503113002/diff/140001/services/ui/common/mus_gpu_memory_buffer_manager.h#newcode60 services/ui/common/mus_gpu_memory_buffer_manager.h:60: std::unordered_map<int, ...
4 years ago (2016-11-29 19:32:36 UTC) #37
sadrul
+sky@ for services/ui/common
4 years ago (2016-11-30 02:21:05 UTC) #42
sky
LGTM - you should be an owner of this file, feel free to update OWNERs ...
4 years ago (2016-11-30 16:14:39 UTC) #43
reveman
https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/gpu_service_proxy.cc File services/ui/ws/gpu_service_proxy.cc (right): https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/gpu_service_proxy.cc#newcode31 services/ui/ws/gpu_service_proxy.cc:31: class GpuServiceImpl : public mojom::GpuService { On 2016/11/24 at ...
4 years ago (2016-11-30 17:32:45 UTC) #44
sadrul
https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/gpu_service_proxy.cc File services/ui/ws/gpu_service_proxy.cc (right): https://codereview.chromium.org/2503113002/diff/120001/services/ui/ws/gpu_service_proxy.cc#newcode31 services/ui/ws/gpu_service_proxy.cc:31: class GpuServiceImpl : public mojom::GpuService { On 2016/11/30 17:32:45, ...
4 years ago (2016-11-30 19:54:31 UTC) #47
reveman
lgtm with some nits https://codereview.chromium.org/2503113002/diff/160001/services/ui/common/mus_gpu_memory_buffer_manager.cc File services/ui/common/mus_gpu_memory_buffer_manager.cc (right): https://codereview.chromium.org/2503113002/diff/160001/services/ui/common/mus_gpu_memory_buffer_manager.cc#newcode89 services/ui/common/mus_gpu_memory_buffer_manager.cc:89: if (!native_buffers_.count(client_id) || On 2016/11/30 ...
4 years ago (2016-12-02 19:12:51 UTC) #50
sadrul
https://codereview.chromium.org/2503113002/diff/180001/services/ui/common/mus_gpu_memory_buffer_manager.cc File services/ui/common/mus_gpu_memory_buffer_manager.cc (right): https://codereview.chromium.org/2503113002/diff/180001/services/ui/common/mus_gpu_memory_buffer_manager.cc#newcode89 services/ui/common/mus_gpu_memory_buffer_manager.cc:89: if (!native_buffers_.count(client_id) || On 2016/12/02 19:12:51, reveman wrote: > ...
4 years ago (2016-12-03 03:28:36 UTC) #55
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/2503113002/220001
4 years ago (2016-12-03 03:53:32 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/326675)
4 years ago (2016-12-03 04:44:28 UTC) #60
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/2503113002/220001
4 years ago (2016-12-03 09:23:41 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/326689)
4 years ago (2016-12-03 10:16:12 UTC) #64
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/2503113002/280001
4 years ago (2016-12-07 03:25:19 UTC) #74
commit-bot: I haz the power
Try jobs failed on following builders: win_optional_gpu_tests_rel on master.tryserver.chromium.win (JOB_TIMED_OUT, no build URL)
4 years ago (2016-12-07 04:24:46 UTC) #76
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/2503113002/280001
4 years ago (2016-12-07 04:38:27 UTC) #78
commit-bot: I haz the power
Committed patchset #14 (id:280001)
4 years ago (2016-12-07 05:51:04 UTC) #81
commit-bot: I haz the power
4 years ago (2016-12-07 05:54:58 UTC) #83
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/0b7867d1681e539c50e5cf075baf6863dd128055
Cr-Commit-Position: refs/heads/master@{#436874}

Powered by Google App Engine
This is Rietveld 408576698