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

Issue 23463014: cc: Poll for state that triggers draws (synchronous compositor only) (Closed)

Created:
7 years, 3 months ago by brianderson
Modified:
7 years, 3 months ago
Reviewers:
danakj, boliu, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, danakj, nduca, epenner, Sami (do not use), joth
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

cc: Poll for state that triggers draws (synchronous compositor only) This adds Scheduler::PollForAnticipatedDrawTriggers which is used by the synchronous compositor to avoid requesting BeginImplFrames when we might not actually draw new content, but still need to monitor state that might trigger a draw at vsync intervals. This can occur, for example, when the last swap used incomplete tiles (checkerboards or low-quality) or when a commit is aborted and we want to wait a vsync before starting the next commit. BUG=284810 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222711

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 4

Patch Set 3 : add more test expectations; formatting; #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -1 line) Patch
M cc/scheduler/scheduler.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 chunks +23 lines, -1 line 0 comments Download
M cc/scheduler/scheduler_state_machine.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
brianderson
Bo, can you see if this fixes the issue in http://b/10533873 ?
7 years, 3 months ago (2013-09-04 01:32:52 UTC) #1
boliu
On 2013/09/04 01:32:52, Brian Anderson wrote: > Bo, can you see if this fixes the ...
7 years, 3 months ago (2013-09-04 03:50:02 UTC) #2
danakj
Can we have tests?
7 years, 3 months ago (2013-09-04 13:08:56 UTC) #3
brianderson
https://codereview.chromium.org/23463014/diff/10001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/23463014/diff/10001/cc/trees/layer_tree_host_unittest.cc#newcode2407 cc/trees/layer_tree_host_unittest.cc:2407: class LayerTreeHostTestAbortedCommitDoesntStallNextCommitWhenIdle This test times out without the fix ...
7 years, 3 months ago (2013-09-11 23:19:31 UTC) #4
enne (OOO)
lgtm. Thanks for writing a test! https://codereview.chromium.org/23463014/diff/10001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/23463014/diff/10001/cc/trees/layer_tree_host_unittest.cc#newcode2411 cc/trees/layer_tree_host_unittest.cc:2411: : commit_count_(0) {} ...
7 years, 3 months ago (2013-09-11 23:28:11 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/23463014/7001
7 years, 3 months ago (2013-09-11 23:50:21 UTC) #6
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-12 00:04:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/23463014/7001
7 years, 3 months ago (2013-09-12 01:04:30 UTC) #8
commit-bot: I haz the power
7 years, 3 months ago (2013-09-12 05:27:54 UTC) #9
Message was sent while issue was closed.
Change committed as 222711

Powered by Google App Engine
This is Rietveld 408576698