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

Issue 2769213006: cc: If SetDeferCommits(true) happens inside the main frame, abort it. (Closed)

Created:
3 years, 9 months ago by danakj
Modified:
3 years, 9 months ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, piman
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: If SetDeferCommits(true) happens inside the main frame, abort it. During the main frame, the embedder may decide it doesn't want to commit anymore, and call SetDeferCommits(true). By continuing to commit at this point we will submit state that it did not intend, which in the case of the ui::Compositor would cause guttering from resize, for example. This adds an additional early out to abort commit after the BeginMainFrame steps, but before UpdateLayers, if SetDeferCommits(true) happened in the meantime. The abort will DidBeginMainFrame() to be well paired with WillBeginMainFrame() but does not report DidCommit() since the commit is aborted and we'll try again later. R=enne@chromium.org BUG=704928 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2769213006 Cr-Commit-Position: refs/heads/master@{#459775} Committed: https://chromium.googlesource.com/chromium/src/+/97660d9bcf2f675cae26595987837c4fe67e8d97

Patch Set 1 #

Patch Set 2 : defer-inside-mainframe: comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -22 lines) Patch
M cc/trees/layer_tree_host_unittest.cc View 1 3 chunks +123 lines, -19 lines 2 comments Download
M cc/trees/proxy_main.cc View 1 chunk +20 lines, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 3 chunks +19 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (10 generated)
danakj
3 years, 9 months ago (2017-03-24 18:45:18 UTC) #2
enne (OOO)
lgtm https://codereview.chromium.org/2769213006/diff/20001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/2769213006/diff/20001/cc/trees/layer_tree_host_unittest.cc#newcode2759 cc/trees/layer_tree_host_unittest.cc:2759: // we don't leave any weird states around ...
3 years, 9 months ago (2017-03-26 23:50:06 UTC) #7
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/2769213006/20001
3 years, 9 months ago (2017-03-26 23:50:21 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/408394)
3 years, 9 months ago (2017-03-27 00:56:43 UTC) #11
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/2769213006/20001
3 years, 9 months ago (2017-03-27 13:14:39 UTC) #13
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 14:12:41 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/97660d9bcf2f675cae2659598783...

Powered by Google App Engine
This is Rietveld 408576698