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

Issue 2539893002: Mus: Implement GpuMain mojo interface (Closed)

Created:
4 years ago by Fady Samuel
Modified:
4 years ago
Reviewers:
Tom Sepez, sadrul, sky, jbauman
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, piman+watch_chromium.org, cc-bugs_chromium.org, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mus: Implement GpuMain mojo interface The GpuMain mojo interface is the single primordial mojo interface used by the window server to start and restart the gpu process in order to ensure that requesting other sub-interfaces doesn't restart a crashed GPU process and put it in a bad state. GpuMain provides factory methods to create two sub-services: the gpu service and the display compositor service. The gpu service does not directly know about the display compositor service, and the display compositor service does not know about the gpu service. GpuMain's implementation is the glue that puts both together. BUG=610937 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Committed: https://crrev.com/2a2351a9d9ae6af2c9222217aa21272a17d24cc9 Cr-Commit-Position: refs/heads/master@{#435509}

Patch Set 1 #

Patch Set 2 : More cleanup #

Patch Set 3 : Cleanup of naming some more #

Total comments: 4

Patch Set 4 : Don't need compositor_runner_ #

Patch Set 5 : Introduce GpuMain root interface #

Patch Set 6 : Add missing file #

Patch Set 7 : more cleanup #

Total comments: 14

Patch Set 8 : Addressed Sadrul's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -158 lines) Patch
M gpu/command_buffer/client/gpu_memory_buffer_manager.h View 2 chunks +1 line, -3 lines 0 comments Download
M services/ui/gpu/gpu_main.h View 1 2 3 4 5 6 7 4 chunks +48 lines, -6 lines 0 comments Download
M services/ui/gpu/gpu_main.cc View 1 2 3 4 5 6 7 6 chunks +99 lines, -19 lines 0 comments Download
M services/ui/gpu/gpu_service_internal.h View 1 2 3 4 5 6 7 chunks +22 lines, -30 lines 0 comments Download
M services/ui/gpu/gpu_service_internal.cc View 1 2 3 4 5 6 7 chunks +4 lines, -66 lines 0 comments Download
M services/ui/gpu/interfaces/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A services/ui/gpu/interfaces/gpu_main.mojom View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
M services/ui/gpu/interfaces/gpu_service_internal.mojom View 1 2 3 4 5 6 2 chunks +0 lines, -7 lines 0 comments Download
M services/ui/surfaces/display_compositor.h View 1 2 3 4 6 chunks +7 lines, -3 lines 0 comments Download
M services/ui/surfaces/display_compositor.cc View 1 2 3 4 7 chunks +10 lines, -1 line 0 comments Download
M services/ui/ws/gpu_service_proxy.h View 1 2 3 4 5 6 1 chunk +6 lines, -1 line 0 comments Download
M services/ui/ws/gpu_service_proxy.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -5 lines 0 comments Download
M services/ui/ws/window_server.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/ws/window_server.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -16 lines 0 comments Download

Messages

Total messages: 44 (30 generated)
Fady Samuel
4 years ago (2016-11-29 19:00:54 UTC) #6
sadrul
https://codereview.chromium.org/2539893002/diff/40001/services/ui/gpu/gpu_main.cc File services/ui/gpu/gpu_main.cc (right): https://codereview.chromium.org/2539893002/diff/40001/services/ui/gpu/gpu_main.cc#newcode118 services/ui/gpu/gpu_main.cc:118: // initialized. DCHECK()? https://codereview.chromium.org/2539893002/diff/40001/services/ui/ws/gpu_service_proxy.cc File services/ui/ws/gpu_service_proxy.cc (right): https://codereview.chromium.org/2539893002/diff/40001/services/ui/ws/gpu_service_proxy.cc#newcode57 services/ui/ws/gpu_service_proxy.cc:57: ...
4 years ago (2016-11-29 19:46:41 UTC) #9
Fady Samuel
I didn't apply your suggestions because they're hard. :P If you really want me to, ...
4 years ago (2016-11-29 20:08:58 UTC) #12
Fady Samuel
PTAL sadrul@: I've reworked this CL based on offline conversations. GpuMain is the central interface ...
4 years ago (2016-11-30 19:16:07 UTC) #19
sadrul
I like it! Some nitty/commentsy comments. I will stare at the thread-hopping dance in GpuMain ...
4 years ago (2016-11-30 21:05:55 UTC) #24
sadrul
Sorry, a couple more comments. With that, I conclude my review. lgtm https://codereview.chromium.org/2539893002/diff/120001/services/ui/gpu/gpu_main.cc File services/ui/gpu/gpu_main.cc ...
4 years ago (2016-11-30 21:13:14 UTC) #25
Fady Samuel
+tsepez@ for mojoms +jbauman for gpu I'm working on sadrul@'s nits.
4 years ago (2016-11-30 21:34:49 UTC) #27
Tom Sepez
mojom LGTM
4 years ago (2016-11-30 21:45:10 UTC) #28
Fady Samuel
+sky@ for window_server https://codereview.chromium.org/2539893002/diff/120001/services/ui/gpu/gpu_main.cc File services/ui/gpu/gpu_main.cc (right): https://codereview.chromium.org/2539893002/diff/120001/services/ui/gpu/gpu_main.cc#newcode112 services/ui/gpu/gpu_main.cc:112: // The client thread will outlive ...
4 years ago (2016-11-30 22:53:20 UTC) #30
jbauman
gpu/ lgtm
4 years ago (2016-11-30 22:55:59 UTC) #31
sky
LGTM
4 years ago (2016-11-30 23:10:50 UTC) #34
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/2539893002/140001
4 years ago (2016-12-01 01:02:25 UTC) #39
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years ago (2016-12-01 01:09:38 UTC) #42
commit-bot: I haz the power
4 years ago (2016-12-01 01:14:18 UTC) #44
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/2a2351a9d9ae6af2c9222217aa21272a17d24cc9
Cr-Commit-Position: refs/heads/master@{#435509}

Powered by Google App Engine
This is Rietveld 408576698