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

Issue 2763493002: gpu: Use mojom API for recording log messages to the host. (Closed)

Created:
3 years, 9 months ago by sadrul
Modified:
3 years, 9 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/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Use mojom API for recording log messages to the host. This introduces mojom.GpuHost.RecordLogMessage() to replace corresponding chrome ipc GpuHostMsg_OnLogMessage. Some notable changes: . The log-handler is set from GpuService instead of from GpuChildThread. This is easier since GpuService owns the connect to mojom.GpuHost. . The message in the host (i.e. the browser) is handled in the IO thread rather than the UI thread. The response is to access the thread-safe GpuDataManager singleton instance. So there should be no behavioural change. BUG=643746 Review-Url: https://codereview.chromium.org/2763493002 Cr-Commit-Position: refs/heads/master@{#458914} Committed: https://chromium.googlesource.com/chromium/src/+/6aafa7de713ba655b50e35b9b0d1a2d9f5078333

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : add comment #

Total comments: 5

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -49 lines) Patch
M content/browser/gpu/gpu_process_host.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 2 chunks +8 lines, -3 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 1 2 3 4 5 1 chunk +0 lines, -10 lines 0 comments Download
M content/common/gpu_host_messages.h View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 3 4 5 7 chunks +2 lines, -28 lines 0 comments Download
M services/ui/gpu/gpu_service.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M services/ui/gpu/gpu_service.cc View 1 2 3 4 5 5 chunks +38 lines, -0 lines 0 comments Download
M services/ui/gpu/interfaces/gpu_host.mojom View 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/gpu_host.h View 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/ws/gpu_host.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (29 generated)
sadrul
tsepez@ for ipc changes. piman@ for all of it. Thanks!
3 years, 9 months ago (2017-03-20 15:52:16 UTC) #15
Tom Sepez
lgtm
3 years, 9 months ago (2017-03-20 17:22:59 UTC) #18
piman
https://codereview.chromium.org/2763493002/diff/80001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://codereview.chromium.org/2763493002/diff/80001/content/gpu/gpu_child_thread.cc#newcode282 content/gpu/gpu_child_thread.cc:282: gpu_host->RecordLogMessage(log.severity, log.header, log.message); Just checking, is it ok to ...
3 years, 9 months ago (2017-03-20 21:20:26 UTC) #23
sadrul
+rockot@ for advice/opinion on thread_safe_sender() vs. use of ThreadSafeInterfacePtrBase<> (in gpu_service.cc) Thanks! https://codereview.chromium.org/2763493002/diff/80001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc ...
3 years, 9 months ago (2017-03-20 21:40:17 UTC) #25
sadrul
I just thought of something: the gpu process needs to allocate gpu memory in the ...
3 years, 9 months ago (2017-03-20 21:54:01 UTC) #26
piman
On Mon, Mar 20, 2017 at 2:54 PM, <sadrul@chromium.org> wrote: > I just thought of ...
3 years, 9 months ago (2017-03-20 22:14:01 UTC) #27
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2763493002/diff/80001/services/ui/gpu/gpu_service.cc File services/ui/gpu/gpu_service.cc (right): https://codereview.chromium.org/2763493002/diff/80001/services/ui/gpu/gpu_service.cc#newcode118 services/ui/gpu/gpu_service.cc:118: base::ThreadTaskRunnerHandle::Get()); On 2017/03/20 at 21:40:17, sadrul wrote: > On ...
3 years, 9 months ago (2017-03-21 00:56:01 UTC) #28
sadrul
Moved the binding to live on the IO thread (https://codereview.chromium.org/2764753004/). This should be ready for ...
3 years, 9 months ago (2017-03-22 13:54:46 UTC) #33
piman
lgtm
3 years, 9 months ago (2017-03-22 21:09:42 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/2763493002/100001
3 years, 9 months ago (2017-03-22 22:45:32 UTC) #37
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 22:57:35 UTC) #40
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/6aafa7de713ba655b50e35b9b0d1...

Powered by Google App Engine
This is Rietveld 408576698