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

Issue 865063002: Call AppendGpuCommandLine for sync compositor (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

Insert in-process GPU switches on UI thread For in-process gpu, the CommandLine of the current process is a shared resource and cannot be safely manipulated on the IO thread. This moves inserting the gpu command line switches to the UI thread, and slightly start up. Although still need additional fixes to start up code to ensure it's safe to manipulate it on UI thread. This also fixes the bug of inserting gpu switches when GpuProcessHost is not used, for example in android webview. BUG=450396 Committed: https://crrev.com/6d695e6f5b99b8631e06788d2f9f9f9ed12c057e Cr-Commit-Position: refs/heads/master@{#313177}

Patch Set 1 #

Total comments: 3

Patch Set 2 : DCHECK #

Patch Set 3 : rewrite #

Total comments: 4

Patch Set 4 : gpu only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -9 lines) Patch
M content/browser/gpu/gpu_data_manager_impl_private.cc View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 23 (2 generated)
boliu
How does this look?
5 years, 11 months ago (2015-01-22 01:29:55 UTC) #2
boliu
On 2015/01/22 01:29:55, boliu wrote: > How does this look? Ping! (will want to merge ...
5 years, 11 months ago (2015-01-23 18:10:21 UTC) #3
no sievers
https://codereview.chromium.org/865063002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc File content/browser/android/in_process/synchronous_compositor_factory_impl.cc (right): https://codereview.chromium.org/865063002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc#newcode172 content/browser/android/in_process/synchronous_compositor_factory_impl.cc:172: base::CommandLine::ForCurrentProcess()); We shouldn't append the command line twice. Can ...
5 years, 11 months ago (2015-01-23 20:21:50 UTC) #4
boliu
https://codereview.chromium.org/865063002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc File content/browser/android/in_process/synchronous_compositor_factory_impl.cc (right): https://codereview.chromium.org/865063002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc#newcode172 content/browser/android/in_process/synchronous_compositor_factory_impl.cc:172: base::CommandLine::ForCurrentProcess()); On 2015/01/23 20:21:50, sievers wrote: > We shouldn't ...
5 years, 11 months ago (2015-01-23 20:30:29 UTC) #5
boliu
https://codereview.chromium.org/865063002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc File content/browser/android/in_process/synchronous_compositor_factory_impl.cc (right): https://codereview.chromium.org/865063002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc#newcode172 content/browser/android/in_process/synchronous_compositor_factory_impl.cc:172: base::CommandLine::ForCurrentProcess()); On 2015/01/23 20:30:29, boliu wrote: > On 2015/01/23 ...
5 years, 11 months ago (2015-01-23 20:36:24 UTC) #6
no sievers
On 2015/01/23 20:30:29, boliu wrote: > https://codereview.chromium.org/865063002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc > File content/browser/android/in_process/synchronous_compositor_factory_impl.cc > (right): > > https://codereview.chromium.org/865063002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc#newcode172 ...
5 years, 11 months ago (2015-01-23 20:58:57 UTC) #7
boliu
On 2015/01/23 20:58:57, sievers wrote: > On 2015/01/23 20:30:29, boliu wrote: > > > https://codereview.chromium.org/865063002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc ...
5 years, 11 months ago (2015-01-23 21:12:47 UTC) #8
no sievers
On 2015/01/23 21:12:47, boliu wrote: > On 2015/01/23 20:58:57, sievers wrote: > > On 2015/01/23 ...
5 years, 11 months ago (2015-01-23 21:30:28 UTC) #9
boliu
On 2015/01/23 21:30:28, sievers wrote: > On 2015/01/23 21:12:47, boliu wrote: > > On 2015/01/23 ...
5 years, 11 months ago (2015-01-23 22:32:13 UTC) #10
no sievers
On 2015/01/23 22:32:13, boliu wrote: > On 2015/01/23 21:30:28, sievers wrote: > > On 2015/01/23 ...
5 years, 11 months ago (2015-01-23 23:00:50 UTC) #11
boliu
On 2015/01/23 23:00:50, sievers wrote: > > I think the battle is already lost by ...
5 years, 11 months ago (2015-01-23 23:08:39 UTC) #12
no sievers
On 2015/01/23 23:08:39, boliu wrote: > On 2015/01/23 23:00:50, sievers wrote: > > > I ...
5 years, 11 months ago (2015-01-23 23:25:33 UTC) #13
boliu
Ok, here's what I came up with. I do want to separate out browser_main_loop bits ...
5 years, 11 months ago (2015-01-24 00:35:25 UTC) #14
no sievers
https://codereview.chromium.org/865063002/diff/40001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (left): https://codereview.chromium.org/865063002/diff/40001/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 19:51:45 UTC) #15
boliu
https://codereview.chromium.org/865063002/diff/40001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (left): https://codereview.chromium.org/865063002/diff/40001/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 22:15:08 UTC) #16
boliu
https://codereview.chromium.org/865063002/diff/40001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (left): https://codereview.chromium.org/865063002/diff/40001/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:08:34 UTC) #17
no sievers
lgtm. Can you update the cl description to also say that this patch fixes the ...
5 years, 11 months ago (2015-01-26 23:20:11 UTC) #18
boliu
On 2015/01/26 23:20:11, sievers wrote: > lgtm. Can you update the cl description to also ...
5 years, 11 months ago (2015-01-26 23:29:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/865063002/60001
5 years, 11 months ago (2015-01-26 23:30:50 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 11 months ago (2015-01-27 00:29:00 UTC) #22
commit-bot: I haz the power
5 years, 11 months ago (2015-01-27 00:31:12 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6d695e6f5b99b8631e06788d2f9f9f9ed12c057e
Cr-Commit-Position: refs/heads/master@{#313177}

Powered by Google App Engine
This is Rietveld 408576698