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

Issue 2822303003: cc : Compute subtree has copy requests before property tree building (Closed)

Created:
3 years, 8 months ago by jaydasika
Modified:
3 years, 8 months ago
Reviewers:
weiliangc
CC:
ajuma, cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc : Compute subtree has copy requests before property tree building To determine if we can skip creating effect nodes for hidden subtrees during property tree building, we need to know if the subtree has any copy requests. So, moving this computation to happen before property tree building. After this CL, we can stop creating effect nodes for hidden subtrees and also stop pushing these layers to compositor thread at commit. BUG=595843 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2822303003 Cr-Commit-Position: refs/heads/master@{#466745} Committed: https://chromium.googlesource.com/chromium/src/+/ebc9428960482240e8a1114b7b795cabf42a6b82

Patch Set 1 #

Patch Set 2 : . #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -70 lines) Patch
M cc/layers/layer.h View 1 3 chunks +6 lines, -1 line 0 comments Download
M cc/layers/layer.cc View 1 3 chunks +17 lines, -2 lines 0 comments Download
M cc/layers/layer_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer_impl.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M cc/layers/layer_impl_test_properties.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer_impl_test_properties.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/draw_property_utils.cc View 1 chunk +1 line, -2 lines 4 comments Download
M cc/trees/effect_node.h View 1 chunk +1 line, -1 line 1 comment Download
M cc/trees/effect_node.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 4 chunks +12 lines, -19 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/property_tree.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/property_tree_builder.cc View 1 11 chunks +45 lines, -33 lines 2 comments Download

Messages

Total messages: 20 (11 generated)
jaydasika
PTAL https://codereview.chromium.org/2822303003/diff/20001/cc/trees/effect_node.h File cc/trees/effect_node.h (left): https://codereview.chromium.org/2822303003/diff/20001/cc/trees/effect_node.h#oldcode61 cc/trees/effect_node.h:61: int num_copy_requests_in_subtree; We need not track the number. ...
3 years, 8 months ago (2017-04-19 02:20:34 UTC) #3
weiliangc
https://codereview.chromium.org/2822303003/diff/20001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (right): https://codereview.chromium.org/2822303003/diff/20001/cc/trees/draw_property_utils.cc#newcode461 cc/trees/draw_property_utils.cc:461: if (effect_node->has_render_surface && effect_node->subtree_has_copy_request) If subtree_has_copy_request is only useful ...
3 years, 8 months ago (2017-04-19 17:58:48 UTC) #8
jaydasika
https://codereview.chromium.org/2822303003/diff/20001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (right): https://codereview.chromium.org/2822303003/diff/20001/cc/trees/draw_property_utils.cc#newcode461 cc/trees/draw_property_utils.cc:461: if (effect_node->has_render_surface && effect_node->subtree_has_copy_request) On 2017/04/19 17:58:48, weiliangc wrote: ...
3 years, 8 months ago (2017-04-19 18:15:15 UTC) #9
weiliangc
https://codereview.chromium.org/2822303003/diff/20001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (right): https://codereview.chromium.org/2822303003/diff/20001/cc/trees/draw_property_utils.cc#newcode461 cc/trees/draw_property_utils.cc:461: if (effect_node->has_render_surface && effect_node->subtree_has_copy_request) On 2017/04/19 at 18:15:14, jaydasika ...
3 years, 8 months ago (2017-04-19 21:21:54 UTC) #10
jaydasika
https://codereview.chromium.org/2822303003/diff/20001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (right): https://codereview.chromium.org/2822303003/diff/20001/cc/trees/draw_property_utils.cc#newcode461 cc/trees/draw_property_utils.cc:461: if (effect_node->has_render_surface && effect_node->subtree_has_copy_request) On 2017/04/19 21:21:54, weiliangc wrote: ...
3 years, 8 months ago (2017-04-19 21:31:36 UTC) #11
jaydasika
ping
3 years, 8 months ago (2017-04-21 03:38:36 UTC) #12
weiliangc
LGTM. Could you update the bug description with your plans? Thanks.
3 years, 8 months ago (2017-04-24 18:33:57 UTC) #13
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/2822303003/20001
3 years, 8 months ago (2017-04-24 19:18:38 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 20:34:23 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/ebc9428960482240e8a1114b7b79...

Powered by Google App Engine
This is Rietveld 408576698