Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Issue 2105673003: cc: Compute animation scale on demand (Closed)

Created:
4 years, 5 months ago by sunxd
Modified:
4 years, 5 months 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:: Compute animation scale on demand As we are cleaning up transform tree logic, we need to remove animation scale computation and data from transform tree. And instead, we compute it when we need it. However, computing animation scale may reuse animation scale data which belongs to other transform nodes, so we need a PropertyTreesCachedData to store this information, and invalidate it every time we update the transform tree. BUG=623564 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/f468675e51ff897ceee05906de62d19b62b238e9 Cr-Commit-Position: refs/heads/master@{#403354}

Patch Set 1 #

Patch Set 2 : Remove animation scale from draw_property_utils #

Patch Set 3 : Remove animation scale from transform tree #

Patch Set 4 : Move property tree update number update to set_needs_update #

Patch Set 5 : Rebase #

Patch Set 6 : Fix compile error #

Total comments: 12

Patch Set 7 : Fix TransformTreeSerializationTest #

Patch Set 8 : Fix compile error #

Total comments: 8

Patch Set 9 : Resolve comments #

Patch Set 10 : Resolve comments #

Patch Set 11 : Add unit tests #

Patch Set 12 : Rebase and resolve comments #

Total comments: 2

Patch Set 13 : Nit changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+538 lines, -408 lines) Patch
M cc/layers/draw_properties.h View 1 1 chunk +0 lines, -8 lines 0 comments Download
M cc/layers/draw_properties.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -16 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -12 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M cc/proto/property_tree.proto View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -5 lines 0 comments Download
M cc/test/layer_tree_host_common_test.h View 1 1 chunk +16 lines, -0 lines 0 comments Download
M cc/trees/draw_property_utils.cc View 1 2 3 1 chunk +0 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 chunks +221 lines, -200 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +65 lines, -19 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 chunks +174 lines, -111 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 2 chunks +1 line, -11 lines 0 comments Download
M cc/trees/property_tree_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -6 lines 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
sunxd
I'm still thinking about adding unit tests for the cached data structure. My current idea ...
4 years, 5 months ago (2016-06-28 20:59:05 UTC) #4
jaydasika
Overall looks good. The tests you suggested also sound good. https://codereview.chromium.org/2105673003/diff/120001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (left): https://codereview.chromium.org/2105673003/diff/120001/cc/trees/property_tree.cc#oldcode1082 ...
4 years, 5 months ago (2016-06-28 23:08:41 UTC) #6
ajuma
https://codereview.chromium.org/2105673003/diff/160001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (left): https://codereview.chromium.org/2105673003/diff/160001/cc/trees/draw_property_utils.cc#oldcode1221 cc/trees/draw_property_utils.cc:1221: layer->draw_properties().starting_animation_contents_scale = 0.f; Please make sure the new logic ...
4 years, 5 months ago (2016-06-29 15:04:38 UTC) #7
sunxd
https://codereview.chromium.org/2105673003/diff/120001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (left): https://codereview.chromium.org/2105673003/diff/120001/cc/trees/property_tree.cc#oldcode1082 cc/trees/property_tree.cc:1082: bool failed_at_ancestor = On 2016/06/28 23:08:40, jaydasika wrote: > ...
4 years, 5 months ago (2016-06-30 15:29:44 UTC) #8
sunxd
I discussed with Ali about the some of the comments and made corresponding changes.
4 years, 5 months ago (2016-06-30 18:36:09 UTC) #9
jaydasika
lgtm % ajuma https://codereview.chromium.org/2105673003/diff/240001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/2105673003/diff/240001/cc/trees/layer_tree_host_common_unittest.cc#newcode8003 cc/trees/layer_tree_host_common_unittest.cc:8003: // root->SetDrawsContent(true); Remove commented code.
4 years, 5 months ago (2016-06-30 19:56:50 UTC) #10
ajuma
lgtm too https://codereview.chromium.org/2105673003/diff/240001/cc/trees/tree_synchronizer_unittest.cc File cc/trees/tree_synchronizer_unittest.cc (right): https://codereview.chromium.org/2105673003/diff/240001/cc/trees/tree_synchronizer_unittest.cc#newcode688 cc/trees/tree_synchronizer_unittest.cc:688: // refreshed when pushing layer trees Style ...
4 years, 5 months ago (2016-06-30 21:57:37 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/2105673003/260001
4 years, 5 months ago (2016-06-30 22:59:47 UTC) #14
commit-bot: I haz the power
Committed patchset #13 (id:260001)
4 years, 5 months ago (2016-06-30 23:56:40 UTC) #16
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 23:57:12 UTC) #17
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 23:59:05 UTC) #19
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/f468675e51ff897ceee05906de62d19b62b238e9
Cr-Commit-Position: refs/heads/master@{#403354}

Powered by Google App Engine
This is Rietveld 408576698