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

Issue 2166043002: cc: Compute target space transform dynamically (Closed)

Created:
4 years, 5 months ago by sunxd
Modified:
4 years, 5 months ago
Reviewers:
jaydasika, ajuma, weiliangc
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 target space transform dynamically This CL adds another code path of computing target space transforms. The old code path is still in use as we have no idea what performance impact would be. The new logic is to compute the transforms on demand and cached all the intermediate results. It is hidden behind the flag verify_transform_tree _calculation. The flag is enabled in unit tests to verify the correct- ness of the new logic. BUG=624120 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel Committed: https://crrev.com/47c2a0e34fcc0c430dc8d3a75daf44061c4e19fd Cr-Commit-Position: refs/heads/master@{#407480}

Patch Set 1 #

Patch Set 2 : Force cc unit tests verify transform tree calculations #

Total comments: 15

Patch Set 3 : Resolve comments #

Total comments: 2

Patch Set 4 : Resolve comments #

Total comments: 4

Patch Set 5 : Verify screen space transform when non_root_surfaces is disabled. #

Total comments: 10

Patch Set 6 : Compute draw transforms invertible dynamically #

Patch Set 7 : Format comments #

Patch Set 8 : Revert ancestors_are_invertible change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -38 lines) Patch
M cc/layers/layer.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M cc/layers/layer.cc View 5 1 chunk +9 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 4 2 chunks +11 lines, -12 lines 0 comments Download
M cc/proto/property_tree.proto View 2 chunks +2 lines, -1 line 0 comments Download
M cc/test/fake_layer_tree_host.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M cc/test/layer_tree_host_common_test.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M cc/test/layer_tree_host_common_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/test/test_layer_tree_host_base.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/draw_property_utils.cc View 1 2 3 6 chunks +14 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 4 5 6 5 chunks +39 lines, -2 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 5 6 7 10 chunks +86 lines, -6 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 3 chunks +9 lines, -0 lines 0 comments Download
M cc/trees/property_tree_unittest.cc View 1 2 3 6 chunks +26 lines, -7 lines 0 comments Download

Messages

Total messages: 39 (21 generated)
sunxd
4 years, 5 months ago (2016-07-20 19:46:22 UTC) #3
sunxd
4 years, 5 months ago (2016-07-20 23:03:28 UTC) #5
jaydasika
https://codereview.chromium.org/2166043002/diff/20001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2166043002/diff/20001/cc/trees/property_tree.cc#newcode269 cc/trees/property_tree.cc:269: // The stored target space transform has sublayer scale ...
4 years, 5 months ago (2016-07-20 23:34:57 UTC) #7
sunxd
https://codereview.chromium.org/2166043002/diff/20001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2166043002/diff/20001/cc/trees/property_tree.cc#newcode1905 cc/trees/property_tree.cc:1905: const EffectNode* effect_node = effect_tree.Node(effect_id); On 2016/07/20 23:34:57, jaydasika ...
4 years, 5 months ago (2016-07-21 18:43:08 UTC) #10
jaydasika
lgtm % (ajuma or weiliangc) https://codereview.chromium.org/2166043002/diff/20001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2166043002/diff/20001/cc/trees/property_tree.cc#newcode1909 cc/trees/property_tree.cc:1909: transform_node->surface_contents_scale.y()); On 2016/07/21 18:43:08, ...
4 years, 5 months ago (2016-07-21 19:32:13 UTC) #11
sunxd
https://codereview.chromium.org/2166043002/diff/20001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2166043002/diff/20001/cc/trees/property_tree.cc#newcode269 cc/trees/property_tree.cc:269: // The stored target space transform has sublayer scale ...
4 years, 5 months ago (2016-07-21 21:50:08 UTC) #13
jaydasika
https://codereview.chromium.org/2166043002/diff/60001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/2166043002/diff/60001/cc/layers/layer_impl.cc#newcode1170 cc/layers/layer_impl.cc:1170: return effect_tree.Node(effect_node->target_id)->render_surface; Is this change required ? If target_effect_tree_index() ...
4 years, 5 months ago (2016-07-21 22:03:34 UTC) #15
sunxd
https://codereview.chromium.org/2166043002/diff/60001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/2166043002/diff/60001/cc/layers/layer_impl.cc#newcode1170 cc/layers/layer_impl.cc:1170: return effect_tree.Node(effect_node->target_id)->render_surface; On 2016/07/21 22:03:34, jaydasika wrote: > Is ...
4 years, 5 months ago (2016-07-22 14:41:17 UTC) #18
ajuma
https://codereview.chromium.org/2166043002/diff/60001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/2166043002/diff/60001/cc/layers/layer_impl.cc#newcode1170 cc/layers/layer_impl.cc:1170: return effect_tree.Node(effect_node->target_id)->render_surface; On 2016/07/22 14:41:17, sunxd wrote: > On ...
4 years, 5 months ago (2016-07-22 15:05:48 UTC) #19
sunxd
https://codereview.chromium.org/2166043002/diff/60001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/2166043002/diff/60001/cc/layers/layer_impl.cc#newcode1170 cc/layers/layer_impl.cc:1170: return effect_tree.Node(effect_node->target_id)->render_surface; On 2016/07/22 15:05:48, ajuma wrote: > On ...
4 years, 5 months ago (2016-07-22 15:32:14 UTC) #20
sunxd
4 years, 5 months ago (2016-07-22 15:53:32 UTC) #23
ajuma
https://codereview.chromium.org/2166043002/diff/80001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2166043002/diff/80001/cc/layers/layer.cc#newcode987 cc/layers/layer.cc:987: if (effect_node->render_surface) I think this is always null on ...
4 years, 5 months ago (2016-07-22 18:29:41 UTC) #26
sunxd
https://codereview.chromium.org/2166043002/diff/80001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2166043002/diff/80001/cc/layers/layer.cc#newcode987 cc/layers/layer.cc:987: if (effect_node->render_surface) On 2016/07/22 18:29:40, ajuma wrote: > I ...
4 years, 5 months ago (2016-07-22 20:25:04 UTC) #27
sunxd
4 years, 5 months ago (2016-07-22 21:32:53 UTC) #29
ajuma
Thanks, lgtm
4 years, 5 months ago (2016-07-22 22:32:12 UTC) #31
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/2166043002/140001
4 years, 5 months ago (2016-07-25 14:37:32 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-07-25 15:34:25 UTC) #37
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 15:36:18 UTC) #39
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/47c2a0e34fcc0c430dc8d3a75daf44061c4e19fd
Cr-Commit-Position: refs/heads/master@{#407480}

Powered by Google App Engine
This is Rietveld 408576698