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

Issue 1177383005: cc: Add command line for frame production throttle (Closed)

Created:
5 years, 6 months ago by Jimmy Jo
Modified:
5 years, 5 months ago
Reviewers:
danakj, jam, brianderson, sky
CC:
chromium-reviews, jam, cc-bugs_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org, darin-cc_chromium.org, mithro-old, sunnyps
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Add command line for frame production throttle. This CL decouples "disable gpu vsync" and "throttle frame production". 1. Add options of display-gpu-vsync --disable-gpu-vsync=gpu : Sets |disable_display_vsync| true. --disable-gpu-vsync=beginframe : Sets |throttle_frame_production| false. --disable-gpu-vsync : Same as using both flags above. 2. Rename |disable_gpu_vsync| variable to |disable_display_vsync|. BUG=492732 R=brianderson@chromium.org, sky@chromium.org, danakj@chromium.org, jam@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/5899bd55e2174cb636c77d45d64827b76bda31b7 Cr-Commit-Position: refs/heads/master@{#338800}

Patch Set 1 : followed Brian`s comment #

Total comments: 6

Patch Set 2 : follow 2nd Brian`s review #

Total comments: 7

Patch Set 3 : clean up space #

Total comments: 4

Patch Set 4 : add space #

Patch Set 5 : git cl format #

Total comments: 8

Patch Set 6 : Dana`s Review #

Patch Set 7 : rebase & follow dana`s review #

Total comments: 8

Patch Set 8 : hope to be final patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -14 lines) Patch
M cc/output/renderer_settings.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/output/renderer_settings.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/onscreen_display_client.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/onscreen_display_client.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_perftest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 1 chunk +12 lines, -2 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 1 chunk +12 lines, -2 lines 0 comments Download
M ui/gl/gl_switches.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 61 (9 generated)
Jimmy Jo
PTAL!
5 years, 6 months ago (2015-06-13 13:45:30 UTC) #2
chromium-reviews
what does it mean to not throttle frames but still use vsync? On Jun 13, ...
5 years, 6 months ago (2015-06-13 18:01:39 UTC) #3
Jimmy Jo
On 2015/06/13 18:01:39, chromium-reviews wrote: > what does it mean to not throttle frames but ...
5 years, 6 months ago (2015-06-14 08:38:08 UTC) #4
brianderson
Copying comments from the bug here: There are number of test frameworks and people who ...
5 years, 6 months ago (2015-06-15 17:56:51 UTC) #5
brianderson
Disabling frame production throttling without disabling vsync would cause the compositor to tie the start ...
5 years, 6 months ago (2015-06-15 18:04:39 UTC) #6
danakj
On Mon, Jun 15, 2015 at 11:04 AM, <brianderson@chromium.org> wrote: > Disabling frame production throttling ...
5 years, 6 months ago (2015-06-15 18:10:34 UTC) #7
brianderson
On 2015/06/15 18:10:34, danakj wrote: > On Mon, Jun 15, 2015 at 11:04 AM, <mailto:brianderson@chromium.org> ...
5 years, 6 months ago (2015-06-15 18:46:57 UTC) #8
danakj
On Mon, Jun 15, 2015 at 11:46 AM, <brianderson@chromium.org> wrote: > On 2015/06/15 18:10:34, danakj ...
5 years, 6 months ago (2015-06-15 19:16:17 UTC) #9
Jimmy Jo
In summary, there are two stuff. right? 1. add three command line flags --disable-display-vsync : ...
5 years, 6 months ago (2015-06-16 11:48:13 UTC) #10
brianderson
On 2015/06/16 11:48:13, Jimmy Jo wrote: > In summary, there are two stuff. right? > ...
5 years, 6 months ago (2015-06-16 16:54:58 UTC) #12
Jimmy Jo
On 2015/06/16 16:54:58, brianderson wrote: > On 2015/06/16 11:48:13, Jimmy Jo wrote: > > In ...
5 years, 6 months ago (2015-06-17 12:21:55 UTC) #13
brianderson
On 2015/06/17 12:21:55, Jimmy Jo wrote: > On 2015/06/16 16:54:58, brianderson wrote: > > On ...
5 years, 6 months ago (2015-06-17 17:48:37 UTC) #14
Jimmy Jo
On 2015/06/17 17:48:37, brianderson wrote: > On 2015/06/17 12:21:55, Jimmy Jo wrote: > > On ...
5 years, 6 months ago (2015-06-18 01:42:29 UTC) #15
Jimmy Jo
On 2015/06/18 01:42:29, Jimmy Jo wrote: > On 2015/06/17 17:48:37, brianderson wrote: > > On ...
5 years, 6 months ago (2015-06-18 12:22:33 UTC) #16
Jimmy Jo
On 2015/06/18 12:22:33, Jimmy Jo wrote: > On 2015/06/18 01:42:29, Jimmy Jo wrote: > > ...
5 years, 6 months ago (2015-06-22 05:22:58 UTC) #17
Jimmy Jo
On 2015/06/22 05:22:58, Jimmy Jo wrote: > On 2015/06/18 12:22:33, Jimmy Jo wrote: > > ...
5 years, 6 months ago (2015-06-24 00:32:12 UTC) #18
brianderson
On 2015/06/24 00:32:12, Jimmy Jo wrote: > On 2015/06/22 05:22:58, Jimmy Jo wrote: > > ...
5 years, 6 months ago (2015-06-24 01:14:41 UTC) #19
brianderson
Please use "--disable-beginframe-interval". +mithro and sunnyps in case they have an opinion regarding naming. https://codereview.chromium.org/1177383005/diff/20001/cc/trees/layer_tree_settings.cc ...
5 years, 6 months ago (2015-06-24 01:16:45 UTC) #20
Jimmy Jo
Update patch. https://codereview.chromium.org/1177383005/diff/20001/cc/trees/layer_tree_settings.cc File cc/trees/layer_tree_settings.cc (right): https://codereview.chromium.org/1177383005/diff/20001/cc/trees/layer_tree_settings.cc#newcode102 cc/trees/layer_tree_settings.cc:102: (cmd->HasSwitch(::switches::kDisableGpuVsync) On 2015/06/24 01:16:45, brianderson wrote: > ...
5 years, 6 months ago (2015-06-24 09:38:31 UTC) #21
Jimmy Jo
ping...
5 years, 6 months ago (2015-06-26 01:23:46 UTC) #23
brianderson
lgtm, though you'll need an OWNERS review for the /content and /ui changes. https://codereview.chromium.org/1177383005/diff/60001/content/browser/renderer_host/render_process_host_impl.cc File ...
5 years, 6 months ago (2015-06-26 01:46:01 UTC) #24
Jimmy Jo
On 2015/06/26 01:46:01, brianderson wrote: > lgtm, though you'll need an OWNERS review for the ...
5 years, 6 months ago (2015-06-26 07:38:06 UTC) #26
sky
https://codereview.chromium.org/1177383005/diff/60001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/1177383005/diff/60001/ui/compositor/compositor.cc#newcode98 ui/compositor/compositor.cc:98: (command_line->HasSwitch(switches::kDisableGpuVsync) || nit: run git cl format https://codereview.chromium.org/1177383005/diff/60001/ui/gl/gl_switches.cc File ...
5 years, 5 months ago (2015-06-29 02:20:28 UTC) #27
Jimmy Jo
Thanks Sky. PTAL again. https://codereview.chromium.org/1177383005/diff/60001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/1177383005/diff/60001/ui/compositor/compositor.cc#newcode98 ui/compositor/compositor.cc:98: (command_line->HasSwitch(switches::kDisableGpuVsync) || On 2015/06/29 02:20:27, ...
5 years, 5 months ago (2015-06-29 02:37:50 UTC) #28
sky
Dana should really review all of this. https://codereview.chromium.org/1177383005/diff/80001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/1177383005/diff/80001/ui/compositor/compositor.cc#newcode99 ui/compositor/compositor.cc:99: command_line->HasSwitch(switches::kDisableDisplayVsync)); I ...
5 years, 5 months ago (2015-06-29 02:50:19 UTC) #29
Jimmy Jo
Thanks. Sky. I added space by your review. PTAL again!! https://codereview.chromium.org/1177383005/diff/80001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/1177383005/diff/80001/ui/compositor/compositor.cc#newcode99 ...
5 years, 5 months ago (2015-06-29 05:30:07 UTC) #30
danakj
https://codereview.chromium.org/1177383005/diff/60001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/1177383005/diff/60001/ui/compositor/compositor.cc#newcode98 ui/compositor/compositor.cc:98: (command_line->HasSwitch(switches::kDisableGpuVsync) || On 2015/06/29 02:37:49, Jimmy Jo wrote: > ...
5 years, 5 months ago (2015-06-29 18:06:19 UTC) #31
danakj
https://codereview.chromium.org/1177383005/diff/60001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/1177383005/diff/60001/ui/compositor/compositor.cc#newcode98 ui/compositor/compositor.cc:98: (command_line->HasSwitch(switches::kDisableGpuVsync) || On 2015/06/29 18:06:19, danakj OOO back june ...
5 years, 5 months ago (2015-06-29 18:07:39 UTC) #32
Jimmy Jo
On 2015/06/29 18:07:39, danakj OOO back june 28 wrote: > https://codereview.chromium.org/1177383005/diff/60001/ui/compositor/compositor.cc > File ui/compositor/compositor.cc (right): ...
5 years, 5 months ago (2015-06-30 02:13:37 UTC) #34
Jimmy Jo
@Sky, Dana : I am really sorry. I confuse "git cl format cc" and "git ...
5 years, 5 months ago (2015-06-30 11:53:53 UTC) #36
Jimmy Jo
On 2015/06/30 11:53:53, Jimmy Jo wrote: > @Sky, Dana : I am really sorry. I ...
5 years, 5 months ago (2015-07-01 01:32:54 UTC) #37
danakj
https://codereview.chromium.org/1177383005/diff/120001/cc/base/switches.cc File cc/base/switches.cc (right): https://codereview.chromium.org/1177383005/diff/120001/cc/base/switches.cc#newcode106 cc/base/switches.cc:106: // Disable frame production throttling. Can you expand this ...
5 years, 5 months ago (2015-07-01 19:47:24 UTC) #38
danakj
You need to add switches you want to use in the renderer process to chrome/browser/chromeos/login/chrome_restart_request.cc ...
5 years, 5 months ago (2015-07-01 19:52:24 UTC) #39
brianderson
https://codereview.chromium.org/1177383005/diff/120001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/1177383005/diff/120001/content/renderer/gpu/render_widget_compositor.cc#newcode227 content/renderer/gpu/render_widget_compositor.cc:227: settings.renderer_settings.disable_display_vsync = On 2015/07/01 19:47:23, danakj OOO back july ...
5 years, 5 months ago (2015-07-01 20:51:57 UTC) #40
Jimmy Jo
On 2015/07/01 19:52:24, danakj OOO back july 6 wrote: > You need to add switches ...
5 years, 5 months ago (2015-07-01 23:08:40 UTC) #41
Jimmy Jo
On 2015/07/01 23:08:40, Jimmy Jo wrote: > On 2015/07/01 19:52:24, danakj OOO back july 6 ...
5 years, 5 months ago (2015-07-02 08:38:48 UTC) #42
danakj
what if we have 1 flag, like--disable-vsync, and you can optionally pass it an argument, ...
5 years, 5 months ago (2015-07-03 00:06:49 UTC) #43
danakj
On Thu, Jul 2, 2015 at 1:38 AM, <jincheol.jo@navercorp.com> wrote: > On 2015/07/01 23:08:40, Jimmy ...
5 years, 5 months ago (2015-07-03 00:07:31 UTC) #44
brianderson
On 2015/07/03 00:06:49, danakj wrote: > what if we have 1 flag, like--disable-vsync, and you ...
5 years, 5 months ago (2015-07-06 23:47:38 UTC) #45
Jimmy Jo
On 2015/07/06 23:47:38, brianderson wrote: > On 2015/07/03 00:06:49, danakj wrote: > > what if ...
5 years, 5 months ago (2015-07-07 02:59:11 UTC) #46
jam
content lgtm
5 years, 5 months ago (2015-07-08 19:34:14 UTC) #47
Jimmy Jo
On 2015/07/03 00:06:49, danakj wrote: > what if we have 1 flag, like--disable-vsync, and you ...
5 years, 5 months ago (2015-07-12 07:39:11 UTC) #48
Jimmy Jo
On 2015/07/12 07:39:11, Jimmy Jo wrote: > On 2015/07/03 00:06:49, danakj wrote: > > what ...
5 years, 5 months ago (2015-07-14 00:53:44 UTC) #50
brianderson
A couple nits, but still lgtm. https://codereview.chromium.org/1177383005/diff/180001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/1177383005/diff/180001/ui/compositor/compositor.cc#newcode99 ui/compositor/compositor.cc:99: settings.renderer_settings.disable_display_vsync = Might ...
5 years, 5 months ago (2015-07-14 01:48:26 UTC) #51
danakj
LGTM % brianderson. thanks https://codereview.chromium.org/1177383005/diff/180001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/1177383005/diff/180001/content/renderer/gpu/render_widget_compositor.cc#newcode231 content/renderer/gpu/render_widget_compositor.cc:231: std::string displayVsyncStr = display_vsync_string https://codereview.chromium.org/1177383005/diff/180001/ui/compositor/compositor.cc ...
5 years, 5 months ago (2015-07-14 19:43:42 UTC) #52
Jimmy Jo
Thanks Brian and Dana. I modified some nits you mentioned. Should I wait SKY`s stamp? ...
5 years, 5 months ago (2015-07-15 00:47:27 UTC) #53
brianderson
On 2015/07/15 00:47:27, Jimmy Jo wrote: > Thanks Brian and Dana. > I modified some ...
5 years, 5 months ago (2015-07-15 01:00:12 UTC) #54
brianderson
lgtm, btw.
5 years, 5 months ago (2015-07-15 01:00:38 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1177383005/200001
5 years, 5 months ago (2015-07-15 01:03:34 UTC) #58
commit-bot: I haz the power
Committed patchset #8 (id:200001)
5 years, 5 months ago (2015-07-15 02:06:57 UTC) #59
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/5899bd55e2174cb636c77d45d64827b76bda31b7 Cr-Commit-Position: refs/heads/master@{#338800}
5 years, 5 months ago (2015-07-15 02:08:05 UTC) #60
Jimmy Jo
5 years, 5 months ago (2015-07-15 02:15:18 UTC) #61
Message was sent while issue was closed.
On 2015/07/15 02:08:05, commit-bot: I haz the power wrote:
> Patchset 8 (id:??) landed as
> https://crrev.com/5899bd55e2174cb636c77d45d64827b76bda31b7
> Cr-Commit-Position: refs/heads/master@{#338800}

Brian, Dana and Chrome reviewers. Thanks for detailed review.
I learned many points while we were reviewing this patches.
Thank you again.
Have a nice day. :-)

Powered by Google App Engine
This is Rietveld 408576698