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

Issue 1646853002: Add embedder api for participating in gpu logic (Closed)

Created:
4 years, 10 months ago by kcwu
Modified:
4 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add embedder api for participating in gpu logic With new ContentGpuClient hook and GetGpuServiceRegistry, embedder can register service in GPU process and query service registry in browser process. BUG=b/25057601 Committed: https://crrev.com/08377adbc7200d4a7e0e9821cfea0809ce61cd82 Cr-Commit-Position: refs/heads/master@{#376217}

Patch Set 1 #

Total comments: 14

Patch Set 2 : move gpu_service_registry.* to content/public/browser #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : addressed owen's comments #

Patch Set 6 : addressed owen's comment (revise) #

Total comments: 1

Patch Set 7 : (rebase) #

Patch Set 8 : fix crash in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -10 lines) Patch
M content/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 4 5 6 3 chunks +12 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/common/gpu/gpu_process_launch_causes.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_gpu.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/gpu/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/app/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/app/content_main_delegate.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/app/content_main_delegate.cc View 2 chunks +9 lines, -0 lines 0 comments Download
A content/public/browser/gpu_service_registry.h View 1 1 chunk +19 lines, -0 lines 0 comments Download
A content/public/browser/gpu_service_registry.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download
M content/public/common/content_client.h View 3 chunks +4 lines, -0 lines 0 comments Download
M content/public/common/content_client.cc View 1 chunk +5 lines, -2 lines 0 comments Download
A + content/public/gpu/BUILD.gn View 1 1 chunk +7 lines, -7 lines 0 comments Download
A content/public/gpu/content_gpu_client.h View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (15 generated)
kcwu
Hi @jam, I added content client hooks as discussed. Could you please take a look? ...
4 years, 10 months ago (2016-01-28 14:57:11 UTC) #2
jam
https://codereview.chromium.org/1646853002/diff/1/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/1646853002/diff/1/content/app/content_main_runner.cc#newcode135 content/app/content_main_runner.cc:135: base::LazyInstance<ContentGpuClient> g_empty_content_gpu_client = nit: follow the rest of the ...
4 years, 10 months ago (2016-01-28 16:47:37 UTC) #3
kcwu
https://codereview.chromium.org/1646853002/diff/1/content/public/gpu/DEPS File content/public/gpu/DEPS (right): https://codereview.chromium.org/1646853002/diff/1/content/public/gpu/DEPS#newcode2 content/public/gpu/DEPS:2: "+content/browser/gpu", On 2016/01/28 16:47:36, jam wrote: > huh? why ...
4 years, 10 months ago (2016-01-28 17:55:30 UTC) #4
jam
https://codereview.chromium.org/1646853002/diff/1/content/public/gpu/DEPS File content/public/gpu/DEPS (right): https://codereview.chromium.org/1646853002/diff/1/content/public/gpu/DEPS#newcode2 content/public/gpu/DEPS:2: "+content/browser/gpu", On 2016/01/28 17:55:30, kcwu wrote: > On 2016/01/28 ...
4 years, 10 months ago (2016-01-28 21:13:39 UTC) #5
kcwu
https://codereview.chromium.org/1646853002/diff/1/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/1646853002/diff/1/content/app/content_main_runner.cc#newcode135 content/app/content_main_runner.cc:135: base::LazyInstance<ContentGpuClient> g_empty_content_gpu_client = On 2016/01/28 16:47:36, jam wrote: > ...
4 years, 10 months ago (2016-01-29 17:22:44 UTC) #6
kcwu
John, PTAL. Thanks.
4 years, 10 months ago (2016-02-01 13:15:05 UTC) #7
wuchengli1
Hi John. Could you take another look? Thanks a lot.
4 years, 10 months ago (2016-02-02 06:49:52 UTC) #9
Owen Lin
https://codereview.chromium.org/1646853002/diff/60001/content/public/gpu/content_gpu_client.h File content/public/gpu/content_gpu_client.h (right): https://codereview.chromium.org/1646853002/diff/60001/content/public/gpu/content_gpu_client.h#newcode20 content/public/gpu/content_gpu_client.h:20: virtual void RegisterMojoServices(ServiceRegistry* registry) {} How about something like ...
4 years, 10 months ago (2016-02-03 07:26:09 UTC) #10
kcwu
https://codereview.chromium.org/1646853002/diff/60001/content/public/gpu/content_gpu_client.h File content/public/gpu/content_gpu_client.h (right): https://codereview.chromium.org/1646853002/diff/60001/content/public/gpu/content_gpu_client.h#newcode20 content/public/gpu/content_gpu_client.h:20: virtual void RegisterMojoServices(ServiceRegistry* registry) {} On 2016/02/03 07:26:08, Owen ...
4 years, 10 months ago (2016-02-03 14:32:55 UTC) #11
jam
just one minor comment https://codereview.chromium.org/1646853002/diff/100001/content/public/browser/gpu_service_registry.h File content/public/browser/gpu_service_registry.h (right): https://codereview.chromium.org/1646853002/diff/100001/content/public/browser/gpu_service_registry.h#newcode15 content/public/browser/gpu_service_registry.h:15: CONTENT_EXPORT ServiceRegistry* GetGpuServiceRegistry(); just put ...
4 years, 10 months ago (2016-02-04 01:48:50 UTC) #12
jam
lgtm (I thought gpuprocesshost was public but it's not)
4 years, 10 months ago (2016-02-04 02:10:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1646853002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1646853002/100001
4 years, 10 months ago (2016-02-04 02:13:02 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/18061)
4 years, 10 months ago (2016-02-04 07:45:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1646853002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1646853002/100001
4 years, 10 months ago (2016-02-04 08:03:11 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/18188)
4 years, 10 months ago (2016-02-04 12:47:17 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1646853002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1646853002/100001
4 years, 10 months ago (2016-02-05 14:33:38 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/18959)
4 years, 10 months ago (2016-02-05 19:14:21 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1646853002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1646853002/100001
4 years, 10 months ago (2016-02-14 04:14:20 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/23189)
4 years, 10 months ago (2016-02-14 08:05:32 UTC) #29
kcwu
On 2016/02/14 08:05:32, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 10 months ago (2016-02-14 09:59:53 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1646853002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1646853002/100001
4 years, 10 months ago (2016-02-16 06:53:31 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/23583)
4 years, 10 months ago (2016-02-16 10:45:52 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1646853002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1646853002/140001
4 years, 10 months ago (2016-02-18 17:48:48 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-18 19:12:53 UTC) #38
commit-bot: I haz the power
4 years, 10 months ago (2016-02-18 19:13:46 UTC) #40
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/08377adbc7200d4a7e0e9821cfea0809ce61cd82
Cr-Commit-Position: refs/heads/master@{#376217}

Powered by Google App Engine
This is Rietveld 408576698