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

Issue 2322123002: gpu: Introduce GpuInit. (Closed)

Created:
4 years, 3 months ago by sadrul
Modified:
4 years, 3 months ago
Reviewers:
piman
CC:
chromium-reviews, jam, darin-cc_chromium.org, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Introduce GpuInit. Consolidate some of the gpu initialization code into GpuInit, so that the same initialization code can be used in chrome, and mus. GpuInit is responsible for: . Creating (and owning) the GpuWatchdogThread (when applicable). . Deciding when to enter the sandbox. . Deciding whether GPU initialization failed (i.e. dead on arrival). . Initializing GL (when applicable), and applying driver bug workarounds. . Initializing dual-gpu support (when applicable). . Computing GPUInfo. Some possibly notable changes: . In order to decide whether GL still needs to be initialized or not, the old code used to look at the --no-sandbox or --in-process-gpu flags. This change instead looks at the current GL implementation, and there isn't one, then it attempts to initialize GL. . Changes the order of initialization of some of the components. For example, the old code used to initialize the message-loop after intializing dual-gpu support. It also used to initialize StatisticsRecorder, set thread priority after creating the watchdog etc. The new code initializes these first, before initializing the components GpuInit is responsible for. . --disable-gpu-watchdog and --gpu-sandbox-start-early flags are moved into //gpu/ipc/service. . Some gpu::GPUInfo related flags (e.g. --gpu-device-id, --gpu-driver-vendor, --gpu-driver-version, --gpu-driver-date, --gpu-vendor-id) move into //gpu/config. BUG=643746 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 Committed: https://crrev.com/454af333cd3626311ac08f7128ee48984b5ecfb1 Cr-Commit-Position: refs/heads/master@{#417634}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : . #

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+437 lines, -310 lines) Patch
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/gpu/gpu_data_manager_impl_private.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M content/gpu/gpu_main.cc View 1 2 3 8 chunks +83 lines, -276 lines 0 comments Download
M content/public/common/content_switches.h View 2 chunks +0 lines, -7 lines 0 comments Download
M content/public/common/content_switches.cc View 3 chunks +0 lines, -22 lines 0 comments Download
M gpu/config/gpu_switches.h View 2 chunks +6 lines, -1 line 0 comments Download
M gpu/config/gpu_switches.cc View 2 chunks +18 lines, -3 lines 0 comments Download
M gpu/ipc/service/BUILD.gn View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
A gpu/ipc/service/gpu_init.h View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A gpu/ipc/service/gpu_init.cc View 1 2 3 1 chunk +234 lines, -0 lines 0 comments Download
A gpu/ipc/service/switches.h View 1 chunk +17 lines, -0 lines 0 comments Download
A gpu/ipc/service/switches.cc View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (24 generated)
sadrul
I have changed a lot of the first version of GpuInit (from https://codereview.chromium.org/2289553002/) in response ...
4 years, 3 months ago (2016-09-09 02:53:08 UTC) #14
piman
LGTM overall, I'm ok with this focused approach. Thanks for the work! I have 2 ...
4 years, 3 months ago (2016-09-09 03:32:41 UTC) #15
sadrul
Thanks for the quick reviews! https://codereview.chromium.org/2322123002/diff/20001/content/gpu/gpu_main.cc File content/gpu/gpu_main.cc (right): https://codereview.chromium.org/2322123002/diff/20001/content/gpu/gpu_main.cc#newcode140 content/gpu/gpu_main.cc:140: WarmUpSandbox(); On 2016/09/09 03:32:41, ...
4 years, 3 months ago (2016-09-09 15:38:04 UTC) #22
piman
LGTM, thanks!
4 years, 3 months ago (2016-09-09 15:55:32 UTC) #23
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/2322123002/60001
4 years, 3 months ago (2016-09-09 18:10:23 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-09 18:14:53 UTC) #29
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 18:16:35 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/454af333cd3626311ac08f7128ee48984b5ecfb1
Cr-Commit-Position: refs/heads/master@{#417634}

Powered by Google App Engine
This is Rietveld 408576698