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

Issue 2612623002: gpu: Use mus gpu interface in non-mus chrome. (Closed)

Created:
3 years, 11 months ago by sadrul
Modified:
3 years, 11 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, piman+watch_chromium.org, qsr+mojo_chromium.org, rjkroege, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Use mus gpu interface in non-mus chrome. Start using mojom::GpuMain, mojom::GpuHost, and mojom::GpuService API in chrome. Notable changes: . GpuChildThread becomes a mojom::GpuMain, and is responsible for providing mojom::GpuService (implemented by GpuService in mus). . GpuProcessHost becomes a mojom::GpuHost, and is responsible for talking to the gpu process using mojom::GpuService api, created through mojom::GpuMain. . GpuChildThread now depends on GpuService to provide implementation of gpu::SyncPointManager (except on android-webview, where it still uses the one provided by the ContentClient), gpu::GpuChannelManager, media::MediaGpuChannelManager, and gpu::GpuWatchdogThread. In subsequent CLs, GpuChildThread will depend on GpuService for additional things (e.g. GpuMemoryBufferFactory etc.) . Using GpuService from GpuChildThread allows removal of chrome IPC msgs used by GpuChildThread for implementing GpuChannelManagerDelegate. . Remove GpuMsg_Initialize message, since GpuProcessHost no longer sends this message to gpu process. Instead, it uses GpuMain::CreateGpuService for initialization. Subsequent CLs will remove additional chrome IPC messages, and replace them with appropriate mojom API in mojom::GpuHost and mojom::GpuService. Use associated interface for GpuMain to preserve message ordering, until all the gpu messages are converted to use mojo. 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 BUG=643746, 630895 Review-Url: https://codereview.chromium.org/2612623002 Cr-Commit-Position: refs/heads/master@{#445649} Committed: https://chromium.googlesource.com/chromium/src/+/72aae8ab52b19f803d4a1ef794bb5783190bf32b

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : tot merge #

Patch Set 7 : slim #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : . #

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : cleanup #

Patch Set 18 : more cleanup #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -183 lines) Patch
M content/browser/gpu/gpu_process_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +20 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +41 lines, -15 lines 1 comment Download
M content/common/gpu_host_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +0 lines, -33 lines 0 comments Download
M content/gpu/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +27 lines, -36 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 13 chunks +52 lines, -85 lines 2 comments Download
M content/gpu/gpu_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/gpu/gpu_service.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +12 lines, -5 lines 0 comments Download
M services/ui/gpu/gpu_service.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +13 lines, -7 lines 0 comments Download

Messages

Total messages: 84 (76 generated)
sadrul
rockot@ for the use of associated interfaces (specifically, the code in GpuChildThread for |associated_interfaces_|) tsepez@ ...
3 years, 11 months ago (2017-01-21 05:35:56 UTC) #70
Tom Sepez
RS LGTM on deleting messages.
3 years, 11 months ago (2017-01-23 18:24:10 UTC) #75
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2612623002/diff/360001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://codereview.chromium.org/2612623002/diff/360001/content/gpu/gpu_child_thread.cc#newcode223 content/gpu/gpu_child_thread.cc:223: registry->AddInterface(base::Bind( nit: just use associated_interfaces_
3 years, 11 months ago (2017-01-23 18:29:53 UTC) #76
sadrul
https://codereview.chromium.org/2612623002/diff/360001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://codereview.chromium.org/2612623002/diff/360001/content/gpu/gpu_child_thread.cc#newcode223 content/gpu/gpu_child_thread.cc:223: registry->AddInterface(base::Bind( On 2017/01/23 18:29:53, Ken Rockot wrote: > nit: ...
3 years, 11 months ago (2017-01-23 19:57:49 UTC) #77
Ken Rockot(use gerrit already)
Ah, that's unfortunate. Maybe we should fix that. Still LG to me as-is then. On ...
3 years, 11 months ago (2017-01-23 20:02:53 UTC) #78
jbauman
lgtm
3 years, 11 months ago (2017-01-24 02:17:02 UTC) #79
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/2612623002/360001
3 years, 11 months ago (2017-01-24 02:59:02 UTC) #81
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 04:53:21 UTC) #84
Message was sent while issue was closed.
Committed patchset #18 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/72aae8ab52b19f803d4a1ef794bb...

Powered by Google App Engine
This is Rietveld 408576698