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

Issue 1409393005: CC Animations: Fix draw properties invalidation on LAC destruction (Closed)

Created:
5 years, 1 month ago by loyso (OOO)
Modified:
5 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CC Animations: Fix draw properties invalidation on LAC destruction We missed a call to layer_tree_impl()->set_needs_update_draw_properties(); in LayerImpl::UpdatePropertyTreeTransformIsAnimated so the active tree draw properties (in particular, screen_space_transform_is_animating) were not recalculated in LayerTreeHostImpl::PrepareToDraw. BUG=547186 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/62daf92eb731d83e64696e6fcff21281d5d3ba59 Cr-Commit-Position: refs/heads/master@{#360748}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix set_needs_update_draw_properties on UpdatePropertyTreeTransformIsAnimatedUpdatePropertyTreeTran… #

Patch Set 3 : Add a test for the frame 2. #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M cc/layers/layer_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation_timelines.cc View 1 2 3 3 chunks +12 lines, -5 lines 0 comments Download

Messages

Total messages: 29 (10 generated)
loyso (OOO)
5 years, 1 month ago (2015-10-27 05:23:52 UTC) #2
Ian Vollick
https://codereview.chromium.org/1409393005/diff/1/cc/trees/layer_tree_host_unittest_animation_timelines.cc File cc/trees/layer_tree_host_unittest_animation_timelines.cc (left): https://codereview.chromium.org/1409393005/diff/1/cc/trees/layer_tree_host_unittest_animation_timelines.cc#oldcode1024 cc/trees/layer_tree_host_unittest_animation_timelines.cc:1024: if (host_impl->active_tree()->source_frame_number() == 2) { I'm sorry, it should ...
5 years, 1 month ago (2015-10-27 14:08:18 UTC) #5
loyso (OOO)
https://codereview.chromium.org/1409393005/diff/1/cc/trees/layer_tree_host_unittest_animation_timelines.cc File cc/trees/layer_tree_host_unittest_animation_timelines.cc (left): https://codereview.chromium.org/1409393005/diff/1/cc/trees/layer_tree_host_unittest_animation_timelines.cc#oldcode1024 cc/trees/layer_tree_host_unittest_animation_timelines.cc:1024: if (host_impl->active_tree()->source_frame_number() == 2) { On 2015/10/27 14:08:18, vollick ...
5 years, 1 month ago (2015-10-27 22:43:46 UTC) #7
Ian Vollick
https://codereview.chromium.org/1409393005/diff/1/cc/trees/layer_tree_host_unittest_animation_timelines.cc File cc/trees/layer_tree_host_unittest_animation_timelines.cc (left): https://codereview.chromium.org/1409393005/diff/1/cc/trees/layer_tree_host_unittest_animation_timelines.cc#oldcode1024 cc/trees/layer_tree_host_unittest_animation_timelines.cc:1024: if (host_impl->active_tree()->source_frame_number() == 2) { On 2015/10/27 22:43:46, loyso ...
5 years, 1 month ago (2015-10-28 22:54:42 UTC) #8
loyso (OOO)
On 2015/10/28 22:54:42, vollick wrote: > Still a little confused (sorry). Could you add a ...
5 years, 1 month ago (2015-10-28 22:56:17 UTC) #9
danakj
My guess is that the scheduler's animate step is racing with the commit complete, so ...
5 years, 1 month ago (2015-10-29 20:34:25 UTC) #11
loyso (OOO)
On 2015/10/29 20:34:25, danakj wrote: > My guess is that the scheduler's animate step is ...
5 years, 1 month ago (2015-10-29 22:57:51 UTC) #12
ajuma
On 2015/10/29 22:57:51, loyso wrote: > On 2015/10/29 20:34:25, danakj wrote: > > My guess ...
5 years, 1 month ago (2015-11-02 20:49:22 UTC) #14
loyso (OOO)
On 2015/11/02 20:49:22, ajuma wrote: > It looks like before the change, we were mostly ...
5 years, 1 month ago (2015-11-03 06:53:24 UTC) #15
loyso (OOO)
In LayerTreeHostImpl::CommitComplete we do: sync_tree()->UpdateDrawProperties(update_lcd_text); // Returns the tree LTH synchronizes with. LayerTreeImpl* sync_tree() { ...
5 years, 1 month ago (2015-11-19 06:14:37 UTC) #16
loyso (OOO)
p.s. 1) We call active_tree_->UpdateDrawProperties from LayerTreeHostImpl::PrepareToDraw. 2) The LayerTreeHostImpl::PrepareToDraw call happens between CommitCompleteOnThread for ...
5 years, 1 month ago (2015-11-19 06:28:44 UTC) #17
loyso (OOO)
Currently: void LayerTreeHost::SetMutatorsNeedCommit() { SetNeedsCommit(); } void LayerTreeHost::SetMutatorsNeedRebuildPropertyTrees() { property_trees_.needs_rebuild = true; } and void ...
5 years, 1 month ago (2015-11-19 06:35:50 UTC) #18
ajuma
On 2015/11/19 06:14:37, loyso wrote: > In LayerTreeHostImpl::CommitComplete we do: > sync_tree()->UpdateDrawProperties(update_lcd_text); > > // ...
5 years, 1 month ago (2015-11-19 14:17:59 UTC) #19
ajuma
On 2015/11/19 06:35:50, loyso wrote: > Currently: > > void LayerTreeHost::SetMutatorsNeedCommit() { > SetNeedsCommit(); > ...
5 years, 1 month ago (2015-11-19 14:32:38 UTC) #20
loyso (OOO)
On 2015/11/19 14:32:38, ajuma wrote: > I'd suggest adding a call to > layer_tree_impl()->set_needs_update_draw_properties() right ...
5 years, 1 month ago (2015-11-19 23:18:15 UTC) #21
ajuma
On 2015/11/19 23:18:15, loyso wrote: > On 2015/11/19 14:32:38, ajuma wrote: > > I'd suggest ...
5 years, 1 month ago (2015-11-20 00:08:54 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1409393005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1409393005/60001
5 years, 1 month ago (2015-11-20 04:23:14 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-20 04:47:42 UTC) #28
commit-bot: I haz the power
5 years, 1 month ago (2015-11-20 04:48:34 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/62daf92eb731d83e64696e6fcff21281d5d3ba59
Cr-Commit-Position: refs/heads/master@{#360748}

Powered by Google App Engine
This is Rietveld 408576698