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

Issue 1149803002: cc: Make single-thread renderer compositor always synchronous. (Closed)

Created:
5 years, 7 months ago by danakj
Modified:
5 years, 7 months ago
Reviewers:
enne (OOO), reveman, piman
CC:
enne (OOO), cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, jbroman, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, piman, sadrul, sky
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Make single-thread renderer compositor always synchronous. Single-thread compositing is only used in layout tests which also wants synchronous compositing. So remove the optionality of synchronous single-thread in the renderer and just always use the two together when the thread is disabled there. Also move the decision to use zero copy in synchronous single threaded mode out to the browser process and just DCHECK it in cc, so that the browser can make decisions based on using zero or one copy authoritively. R=enne BUG=489447 Committed: https://crrev.com/16e072dbe4cb807dec7f17340f62a3516b852c17 Cr-Commit-Position: refs/heads/master@{#330860}

Patch Set 1 #

Patch Set 2 : syncsinglethread: . #

Total comments: 4

Patch Set 3 : syncsinglethread: . #

Patch Set 4 : syncsinglethread: todo #

Patch Set 5 : syncsinglethread: . #

Patch Set 6 : syncsinglethread: zerocopyforunittests #

Patch Set 7 : syncsinglethread: . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -28 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 2 chunks +6 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_pixeltest_synchronous.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 5 6 4 chunks +4 lines, -0 lines 0 comments Download
M content/browser/gpu/compositor_util.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/gpu/compositor_dependencies.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M content/test/fake_compositor_dependencies.h View 1 2 3 4 2 chunks +0 lines, -6 lines 0 comments Download
M content/test/fake_compositor_dependencies.cc View 1 2 3 4 5 2 chunks +3 lines, -8 lines 0 comments Download

Messages

Total messages: 38 (17 generated)
danakj
5 years, 7 months ago (2015-05-20 18:55:35 UTC) #1
danakj
+piman for content/
5 years, 7 months ago (2015-05-20 18:56:07 UTC) #3
enne (OOO)
lgtm https://codereview.chromium.org/1149803002/diff/20001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/1149803002/diff/20001/content/renderer/gpu/render_widget_compositor.cc#newcode320 content/renderer/gpu/render_widget_compositor.cc:320: settings.single_thread_proxy_scheduler = false; Can you leave a comment ...
5 years, 7 months ago (2015-05-20 19:05:24 UTC) #5
danakj
https://codereview.chromium.org/1149803002/diff/20001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/1149803002/diff/20001/content/renderer/gpu/render_widget_compositor.cc#newcode320 content/renderer/gpu/render_widget_compositor.cc:320: settings.single_thread_proxy_scheduler = false; On 2015/05/20 19:05:23, enne wrote: > ...
5 years, 7 months ago (2015-05-20 19:07:38 UTC) #6
piman
LGTM, but issue title needs a typo fix (syncronous->synchronous)
5 years, 7 months ago (2015-05-20 19:10:30 UTC) #8
danakj
Fixed, thanks.
5 years, 7 months ago (2015-05-20 19:12:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149803002/40001
5 years, 7 months ago (2015-05-20 19:12:52 UTC) #12
reveman
https://codereview.chromium.org/1149803002/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/1149803002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode2132 cc/trees/layer_tree_host_impl.cc:2132: // draw when raster is complete. Therefore, it must ...
5 years, 7 months ago (2015-05-20 19:13:32 UTC) #14
danakj
https://codereview.chromium.org/1149803002/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/1149803002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode2132 cc/trees/layer_tree_host_impl.cc:2132: // draw when raster is complete. Therefore, it must ...
5 years, 7 months ago (2015-05-20 19:16:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149803002/60001
5 years, 7 months ago (2015-05-20 19:18:06 UTC) #18
reveman
On 2015/05/20 at 19:16:34, danakj wrote: > https://codereview.chromium.org/1149803002/diff/20001/cc/trees/layer_tree_host_impl.cc > File cc/trees/layer_tree_host_impl.cc (right): > > https://codereview.chromium.org/1149803002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode2132 ...
5 years, 7 months ago (2015-05-20 19:26:55 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/74022)
5 years, 7 months ago (2015-05-20 19:44:07 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149803002/80001
5 years, 7 months ago (2015-05-20 20:21:45 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/12649)
5 years, 7 months ago (2015-05-20 20:50:25 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149803002/100001
5 years, 7 months ago (2015-05-20 21:15:09 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/90984)
5 years, 7 months ago (2015-05-20 22:23:09 UTC) #31
enne (OOO)
o/~ "If you're gonna turn on the scheduler, you'd better use zero copy!"
5 years, 7 months ago (2015-05-20 22:31:10 UTC) #34
enne (OOO)
o/~ "If you're gonna turn on the scheduler, you'd better use zero copy!" http://i.imgur.com/EM3k1Px.gif
5 years, 7 months ago (2015-05-20 22:32:15 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149803002/120001
5 years, 7 months ago (2015-05-20 22:32:42 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 7 months ago (2015-05-21 00:31:29 UTC) #37
commit-bot: I haz the power
5 years, 7 months ago (2015-05-21 00:32:22 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/16e072dbe4cb807dec7f17340f62a3516b852c17
Cr-Commit-Position: refs/heads/master@{#330860}

Powered by Google App Engine
This is Rietveld 408576698