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

Issue 879703003: Make in-process gpu init thread safe (Closed)

Created:
5 years, 11 months ago by boliu
Modified:
5 years, 11 months ago
Reviewers:
no sievers
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make in-process gpu init thread safe Initialize in-process gpu before threads are created. In-process gpu init appends command line switches to the global current process command line, which is only safe to do before any background threads start and read the command line. BUG=450396 Committed: https://crrev.com/7439d046892d08a0857670a46589b5fa33838e32 Cr-Commit-Position: refs/heads/master@{#313387}

Patch Set 1 #

Total comments: 1

Patch Set 2 : review #

Total comments: 8

Patch Set 3 : review #

Total comments: 4

Patch Set 4 : review3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -17 lines) Patch
M content/browser/browser_main_loop.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 6 chunks +43 lines, -17 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
boliu
https://codereview.chromium.org/879703003/diff/1/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (left): https://codereview.chromium.org/879703003/diff/1/content/browser/browser_main_loop.cc#oldcode1029 content/browser/browser_main_loop.cc:1029: // On Android, GLSurface::InitializeOneOff() must be called before initalizing ...
5 years, 11 months ago (2015-01-26 23:56:10 UTC) #2
no sievers
On 2015/01/26 23:56:10, boliu wrote: > https://codereview.chromium.org/879703003/diff/1/content/browser/browser_main_loop.cc > File content/browser/browser_main_loop.cc (left): > > https://codereview.chromium.org/879703003/diff/1/content/browser/browser_main_loop.cc#oldcode1029 > ...
5 years, 11 months ago (2015-01-27 00:02:55 UTC) #3
boliu
PS2 doesn't look any better to me. Has more code duplication. Or maybe I didn't ...
5 years, 11 months ago (2015-01-27 00:15:56 UTC) #4
no sievers
https://codereview.chromium.org/879703003/diff/20001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/879703003/diff/20001/content/browser/browser_main_loop.cc#newcode621 content/browser/browser_main_loop.cc:621: // since it's unsafe to manipulate the global CommandLine ...
5 years, 11 months ago (2015-01-27 19:43:58 UTC) #5
boliu
https://codereview.chromium.org/879703003/diff/20001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/879703003/diff/20001/content/browser/browser_main_loop.cc#newcode621 content/browser/browser_main_loop.cc:621: // since it's unsafe to manipulate the global CommandLine ...
5 years, 11 months ago (2015-01-27 20:06:35 UTC) #6
no sievers
lgtm https://codereview.chromium.org/879703003/diff/40001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/879703003/diff/40001/content/browser/browser_main_loop.cc#newcode626 content/browser/browser_main_loop.cc:626: if (!gfx::GLSurface::InitializeOneOff()) { Actually you can comment before ...
5 years, 11 months ago (2015-01-27 20:42:04 UTC) #7
boliu
https://codereview.chromium.org/879703003/diff/40001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/879703003/diff/40001/content/browser/browser_main_loop.cc#newcode626 content/browser/browser_main_loop.cc:626: if (!gfx::GLSurface::InitializeOneOff()) { On 2015/01/27 20:42:04, sievers wrote: > ...
5 years, 11 months ago (2015-01-27 21:20:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/879703003/60001
5 years, 11 months ago (2015-01-27 21:21:42 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 11 months ago (2015-01-27 22:51:40 UTC) #11
commit-bot: I haz the power
5 years, 11 months ago (2015-01-27 22:52:24 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7439d046892d08a0857670a46589b5fa33838e32
Cr-Commit-Position: refs/heads/master@{#313387}

Powered by Google App Engine
This is Rietveld 408576698