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

Issue 178123003: Make it possible to cancel commits following an animation (Closed)

Created:
6 years, 10 months ago by Sami
Modified:
6 years, 9 months ago
Reviewers:
danakj, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, trchen
Visibility:
Public.

Description

Make it possible to cancel commits following an animation If we didn't invalidate anything when running main thread animations, there is no need to continue with the commit. BUG=345584, 347255, 348433 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254558

Patch Set 1 #

Patch Set 2 : Fix failing test and add new test. #

Patch Set 3 : Fix telemetry screenshot test. #

Patch Set 4 : Add test for SetNextCommitForcesRedraw. #

Patch Set 5 : Fix unit test flakiness in debug builds. #

Total comments: 2

Patch Set 6 : Fix cc_perftests failure. Make unit test limits stricter. #

Total comments: 1

Patch Set 7 : Swap EXPECT_EQ order #

Patch Set 8 : Fix bug with calling SetNeedsAnimate after SetNeedsCommit. #

Total comments: 1

Patch Set 9 : Made test less strict. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -15 lines) Patch
M cc/trees/layer_tree_host.cc View 1 2 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_perftest.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 2 3 4 5 6 7 8 2 chunks +117 lines, -0 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 7 3 chunks +11 lines, -13 lines 0 comments Download

Messages

Total messages: 51 (0 generated)
Sami
This is a tentative patch and I'm hoping you could tell me why it's a ...
6 years, 10 months ago (2014-02-24 17:26:33 UTC) #1
enne (OOO)
I can't think of any reason why we shouldn't do this. Sounds good to me. ...
6 years, 10 months ago (2014-02-24 17:54:15 UTC) #2
Sami
Thanks for the encouraging words. Looks like this breaks LayerTreeHostAnimationTestContinuousAnimate so I'll figure out why ...
6 years, 10 months ago (2014-02-24 18:05:51 UTC) #3
Sami
LayerTreeHostAnimationTestContinuousAnimate was failing because it wasn't actually painting any new content during Animate(), so the ...
6 years, 10 months ago (2014-02-24 18:39:29 UTC) #4
danakj
This reminded me of https://codereview.chromium.org/133263004/ which I guess was reverted. If this can stick it ...
6 years, 10 months ago (2014-02-24 18:47:21 UTC) #5
enne (OOO)
lgtm. Thanks for noticing this, and thanks for the test. :)
6 years, 10 months ago (2014-02-24 18:47:57 UTC) #6
enne (OOO)
The CQ bit was checked by enne@chromium.org
6 years, 10 months ago (2014-02-24 18:48:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/60001
6 years, 10 months ago (2014-02-24 18:49:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/60001
6 years, 10 months ago (2014-02-24 20:27:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/60001
6 years, 10 months ago (2014-02-24 21:11:12 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-24 23:52:05 UTC) #11
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=229833
6 years, 10 months ago (2014-02-24 23:52:06 UTC) #12
Sami
On 2014/02/24 23:52:06, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 10 months ago (2014-02-25 14:44:44 UTC) #13
danakj
I think that LGTM.
6 years, 10 months ago (2014-02-25 16:36:59 UTC) #14
danakj
On 2014/02/25 16:36:59, danakj wrote: > I think that LGTM. A quick unit test that ...
6 years, 10 months ago (2014-02-25 16:38:11 UTC) #15
Sami
On 2014/02/25 16:38:11, danakj wrote: > A quick unit test that would fail without that ...
6 years, 10 months ago (2014-02-25 17:16:47 UTC) #16
Sami
The CQ bit was checked by skyostil@chromium.org
6 years, 10 months ago (2014-02-25 17:16:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/280001
6 years, 10 months ago (2014-02-25 17:17:21 UTC) #18
danakj
On Tue, Feb 25, 2014 at 12:16 PM, <skyostil@chromium.org> wrote: > On 2014/02/25 16:38:11, danakj ...
6 years, 10 months ago (2014-02-25 18:11:36 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/280001
6 years, 10 months ago (2014-02-25 21:48:00 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/280001
6 years, 10 months ago (2014-02-25 22:12:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/280001
6 years, 10 months ago (2014-02-25 23:16:19 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/280001
6 years, 10 months ago (2014-02-26 00:03:11 UTC) #23
Paweł Hajdan Jr.
The CQ bit was unchecked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 05:34:28 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-26 05:34:48 UTC) #25
Paweł Hajdan Jr.
The CQ bit was checked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 05:42:40 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/280001
6 years, 10 months ago (2014-02-26 05:50:36 UTC) #27
commit-bot: I haz the power
Change committed as 253439
6 years, 10 months ago (2014-02-26 14:31:18 UTC) #28
waffles
CL reverted in https://codereview.chromium.org/181383005
6 years, 10 months ago (2014-02-26 18:24:22 UTC) #29
Sami
The CQ bit was checked by skyostil@chromium.org
6 years, 10 months ago (2014-02-26 18:39:50 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/300001
6 years, 10 months ago (2014-02-26 18:41:04 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-26 19:06:16 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_clang_dbg
6 years, 10 months ago (2014-02-26 19:06:16 UTC) #33
danakj
https://codereview.chromium.org/178123003/diff/300001/cc/trees/layer_tree_host_unittest_animation.cc File cc/trees/layer_tree_host_unittest_animation.cc (right): https://codereview.chromium.org/178123003/diff/300001/cc/trees/layer_tree_host_unittest_animation.cc#newcode892 cc/trees/layer_tree_host_unittest_animation.cc:892: EXPECT_GT(num_draw_layers_, 0); The first commit will always draw. Do ...
6 years, 10 months ago (2014-02-26 19:09:04 UTC) #34
Sami
On 2014/02/26 19:09:04, danakj wrote: > https://codereview.chromium.org/178123003/diff/300001/cc/trees/layer_tree_host_unittest_animation.cc#newcode892 > cc/trees/layer_tree_host_unittest_animation.cc:892: EXPECT_GT(num_draw_layers_, > 0); > The first ...
6 years, 9 months ago (2014-02-27 12:35:58 UTC) #35
danakj
LGTM https://codereview.chromium.org/178123003/diff/320001/cc/trees/layer_tree_host_unittest_animation.cc File cc/trees/layer_tree_host_unittest_animation.cc (right): https://codereview.chromium.org/178123003/diff/320001/cc/trees/layer_tree_host_unittest_animation.cc#newcode893 cc/trees/layer_tree_host_unittest_animation.cc:893: EXPECT_EQ(num_draw_layers_, 2); order should be: expected, actual
6 years, 9 months ago (2014-02-27 17:43:28 UTC) #36
Sami
The CQ bit was checked by skyostil@chromium.org
6 years, 9 months ago (2014-02-27 17:52:19 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/340001
6 years, 9 months ago (2014-02-27 17:52:55 UTC) #38
enne (OOO)
lgtm
6 years, 9 months ago (2014-02-27 17:53:34 UTC) #39
commit-bot: I haz the power
Change committed as 253910
6 years, 9 months ago (2014-02-27 20:00:10 UTC) #40
nduca
Hey sami, this broke the rasterize_and_record_micro benchmark in telemetry: https://code.google.com/p/chromium/issues/detail?id=348433 Im going to revert it ...
6 years, 9 months ago (2014-03-02 22:26:09 UTC) #41
Sami
Third time's the charm :) The problem was that calling SetNeedsAnimate() after SetNeedsCommit() would reset ...
6 years, 9 months ago (2014-03-03 16:35:40 UTC) #42
danakj
Thanks for the new test, LGTM https://codereview.chromium.org/178123003/diff/360001/cc/trees/layer_tree_host_unittest_animation.cc File cc/trees/layer_tree_host_unittest_animation.cc (right): https://codereview.chromium.org/178123003/diff/360001/cc/trees/layer_tree_host_unittest_animation.cc#newcode930 cc/trees/layer_tree_host_unittest_animation.cc:930: EXPECT_EQ(3, num_animate_); Can ...
6 years, 9 months ago (2014-03-03 16:41:46 UTC) #43
Sami
On 2014/03/03 16:41:46, danakj wrote: > Thanks for the new test, LGTM > > https://codereview.chromium.org/178123003/diff/360001/cc/trees/layer_tree_host_unittest_animation.cc ...
6 years, 9 months ago (2014-03-03 17:17:36 UTC) #44
Sami
The CQ bit was checked by skyostil@chromium.org
6 years, 9 months ago (2014-03-03 17:17:44 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/380001
6 years, 9 months ago (2014-03-03 17:17:58 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/380001
6 years, 9 months ago (2014-03-03 17:35:38 UTC) #47
danakj
On Mon, Mar 3, 2014 at 12:17 PM, <skyostil@chromium.org> wrote: > On 2014/03/03 16:41:46, danakj ...
6 years, 9 months ago (2014-03-03 17:47:17 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/380001
6 years, 9 months ago (2014-03-03 18:26:52 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/178123003/380001
6 years, 9 months ago (2014-03-03 19:54:47 UTC) #50
commit-bot: I haz the power
6 years, 9 months ago (2014-03-03 21:03:41 UTC) #51
Message was sent while issue was closed.
Change committed as 254558

Powered by Google App Engine
This is Rietveld 408576698