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

Issue 11478039: cc: Force layer tree tests to go idle before exiting. (Closed)

Created:
8 years ago by danakj
Modified:
8 years ago
Reviewers:
jamesr, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, piman, backer
Visibility:
Public.

Description

cc: Force layer tree tests to go idle before exiting. We've been plagued by flaky cc_unittests due to ending the test while the scheduler still has work to do. This leaves us in a state where tests sometimes run a pending commit, suddenly flaking. This change forces test writers to clean up their tests properly, and not schedule tasks that they don't intend for the test to include. The test will not exit until the scheduler reports that it has no commit waiting to process. The LayerTreeHostTestCanDrawBlocksDrawing test caused problems as the scheduler would end up in a weird state and never reach idle. I have filed crbug.com/165022 for this test, but have worked around the bad scheduler behaviour in this change. R=enne,jamesr BUG=148490 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173484 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173566

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : rebased #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -69 lines) Patch
M cc/layer_tree_host_unittest.cc View 1 2 3 4 5 25 chunks +72 lines, -39 lines 0 comments Download
M cc/proxy.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/single_thread_proxy.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/single_thread_proxy.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M cc/test/fake_proxy.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/fake_proxy.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test_common.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/layer_tree_test_common.cc View 1 2 3 13 chunks +7 lines, -29 lines 0 comments Download
M cc/thread_proxy.h View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M cc/thread_proxy.cc View 1 2 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
danakj
8 years ago (2012-12-08 22:36:24 UTC) #1
enne (OOO)
lgtm in general https://codereview.chromium.org/11478039/diff/6001/cc/contents_scaling_layer.cc File cc/contents_scaling_layer.cc (left): https://codereview.chromium.org/11478039/diff/6001/cc/contents_scaling_layer.cc#oldcode37 cc/contents_scaling_layer.cc:37: setNeedsDisplay(); I'm not convinced about this. ...
8 years ago (2012-12-12 21:13:01 UTC) #2
danakj
Thanks https://codereview.chromium.org/11478039/diff/6001/cc/contents_scaling_layer.cc File cc/contents_scaling_layer.cc (left): https://codereview.chromium.org/11478039/diff/6001/cc/contents_scaling_layer.cc#oldcode37 cc/contents_scaling_layer.cc:37: setNeedsDisplay(); On 2012/12/12 21:13:01, enne wrote: > I'm ...
8 years ago (2012-12-12 21:13:57 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11478039/12001
8 years ago (2012-12-17 15:57:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11478039/12001
8 years ago (2012-12-17 16:12:09 UTC) #5
commit-bot: I haz the power
Change committed as 173484
8 years ago (2012-12-17 17:48:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11478039/26001
8 years ago (2012-12-17 19:52:36 UTC) #7
commit-bot: I haz the power
8 years ago (2012-12-17 23:31:07 UTC) #8
Message was sent while issue was closed.
Change committed as 173566

Powered by Google App Engine
This is Rietveld 408576698