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

Issue 2820463002: gpu: Completely remove GpuProcessHostUIShim. (Closed)

Created:
3 years, 8 months ago by sadrul
Modified:
3 years, 8 months ago
Reviewers:
rjkroege, dnicoara, jam, jbauman
CC:
chromium-reviews, ozone-reviews_chromium.org, jam, darin-cc_chromium.org, kalyank, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Completely remove GpuProcessHostUIShim. The only remaining purpose of GpuProcessHostUIShim was to send messages back and forth between GpuProcessHost and the ozone platform. Move that relevant code into GpuProcessHost, and remove the ui shim. For ozone: Remove GpuPlatformSupportHost::OnChannelEstablished(). It is currently needed only for the drm implementation, and is essentially just a thread hop from the IO thread to the UI thread. So do that from inside the drm implementation, instead of having a public API and requiring the gpu host do the thread-hop. BUG=709332, 711333 Review-Url: https://codereview.chromium.org/2820463002 Cr-Commit-Position: refs/heads/master@{#466351} Committed: https://chromium.googlesource.com/chromium/src/+/63c1e2603b28e1fb6a2ca120e793497ed3b37220

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : fix device crash #

Total comments: 2

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -279 lines) Patch
M content/browser/BUILD.gn View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 9 chunks +54 lines, -25 lines 0 comments Download
D content/browser/gpu/gpu_process_host_ui_shim.h View 1 chunk +0 lines, -73 lines 0 comments Download
D content/browser/gpu/gpu_process_host_ui_shim.cc View 1 chunk +0 lines, -143 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h View 1 2 3 4 chunks +7 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc View 1 2 3 3 chunks +23 lines, -16 lines 0 comments Download
M ui/ozone/public/gpu_platform_support_host.h View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M ui/ozone/public/gpu_platform_support_host.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M ui/ozone/public/ozone_gpu_test_helper.cc View 1 2 3 2 chunks +2 lines, -8 lines 0 comments Download

Messages

Total messages: 38 (24 generated)
sadrul
jbauman@ for content changes. dnicoara@/rjkroege@ for ozone changes. Thanks!
3 years, 8 months ago (2017-04-13 13:44:05 UTC) #11
jbauman
lgtm
3 years, 8 months ago (2017-04-15 00:56:41 UTC) #13
rjkroege
https://codereview.chromium.org/2820463002/diff/20001/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc File ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc (right): https://codereview.chromium.org/2820463002/diff/20001/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc#newcode183 ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc:183: cursor_->SetDrmCursorProxy(new CursorIPC(send_runner_, send_callback_)); doesn't this imply that cursor messages ...
3 years, 8 months ago (2017-04-18 20:29:51 UTC) #14
sadrul
https://codereview.chromium.org/2820463002/diff/20001/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc File ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc (right): https://codereview.chromium.org/2820463002/diff/20001/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc#newcode183 ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc:183: cursor_->SetDrmCursorProxy(new CursorIPC(send_runner_, send_callback_)); On 2017/04/18 20:29:51, rjkroege wrote: > ...
3 years, 8 months ago (2017-04-18 20:51:44 UTC) #15
sadrul
Fixed the crash on device (the change was to explicitly notify the GpuPlatformSupportHost when the ...
3 years, 8 months ago (2017-04-19 17:25:03 UTC) #18
sadrul
+jam@ for browser_main_loop.cc change.
3 years, 8 months ago (2017-04-19 17:25:22 UTC) #20
jam
https://codereview.chromium.org/2820463002/diff/40001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/2820463002/diff/40001/content/browser/browser_main_loop.cc#newcode659 content/browser/browser_main_loop.cc:659: ->BindToCurrentThread(); why not just pass in the UI thread's ...
3 years, 8 months ago (2017-04-20 00:22:20 UTC) #23
sadrul
https://codereview.chromium.org/2820463002/diff/40001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/2820463002/diff/40001/content/browser/browser_main_loop.cc#newcode659 content/browser/browser_main_loop.cc:659: ->BindToCurrentThread(); On 2017/04/20 00:22:20, jam wrote: > why not ...
3 years, 8 months ago (2017-04-20 03:10:31 UTC) #26
jam
lgtm
3 years, 8 months ago (2017-04-20 16:03:25 UTC) #29
sadrul
rjkroege@: ping
3 years, 8 months ago (2017-04-21 03:47:12 UTC) #30
rjkroege
lgtm
3 years, 8 months ago (2017-04-21 14:06:31 UTC) #31
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/2820463002/60001
3 years, 8 months ago (2017-04-21 14:22:41 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/63c1e2603b28e1fb6a2ca120e793497ed3b37220
3 years, 8 months ago (2017-04-21 16:01:15 UTC) #37
kcwu
3 years, 7 months ago (2017-04-27 15:10:41 UTC) #38
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2848643002/ by kcwu@chromium.org.

The reason for reverting is: This CL break video_VideoDecodeAccelerator and
video_VDASanity on all ChromeOS boards.

BUG=715957.

Powered by Google App Engine
This is Rietveld 408576698