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

Issue 2755803003: cc: Remove SetNeedsCommitNoRebuild from Layer API (Closed)

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

Description

cc: Remove SetNeedsCommitNoRebuild from Layer API Remove SetNeedsCommitNoRebuild, and Layer::SetNeedsCommit simply calls LayerTreeHost::SetNeedsCommit. This means now property trees should be resposible for its own rebuild when trying to update a node that does not exist yet on main thread. On Layer, now some property setting functions need to call property trees to rebuild. These should no longer be needed from Blink once SPv2 is in place. BUG=695681 R=ajuma, danakj CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2755803003 Cr-Commit-Position: refs/heads/master@{#458521} Committed: https://chromium.googlesource.com/chromium/src/+/1c0802c3c4c03b43efea23b82d7e624f1d8c7b57

Patch Set 1 #

Patch Set 2 : rebase from previous commit #

Total comments: 16

Patch Set 3 : address review comments #

Total comments: 2

Patch Set 4 : address review comment #

Total comments: 2

Patch Set 5 : address review comment #

Patch Set 6 : check for LTH #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -100 lines) Patch
M cc/layers/layer.h View 1 2 5 chunks +9 lines, -3 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 42 chunks +89 lines, -56 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 6 chunks +15 lines, -11 lines 0 comments Download
M cc/layers/surface_layer.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/draw_property_utils.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/draw_property_utils.cc View 4 chunks +24 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 1 chunk +8 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 chunks +14 lines, -3 lines 0 comments Download
M cc/trees/property_tree.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 chunks +11 lines, -4 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 39 (25 generated)
weiliangc
Trying to make property tree understand more about when to rebuild.
3 years, 9 months ago (2017-03-16 22:29:28 UTC) #8
ajuma
Really happy to see SetNeedsCommitNoRebuild getting deleted! https://codereview.chromium.org/2755803003/diff/20001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2755803003/diff/20001/cc/layers/layer.cc#newcode832 cc/layers/layer.cc:832: inputs_.user_scrollable_vertical = ...
3 years, 9 months ago (2017-03-16 23:42:12 UTC) #11
ajuma
https://codereview.chromium.org/2755803003/diff/20001/cc/trees/property_tree.h File cc/trees/property_tree.h (right): https://codereview.chromium.org/2755803003/diff/20001/cc/trees/property_tree.h#newcode85 cc/trees/property_tree.h:85: virtual void set_needs_update(bool needs_update) { On 2017/03/16 23:42:11, ajuma ...
3 years, 9 months ago (2017-03-17 00:00:37 UTC) #12
danakj
Compiler errors like e:\b\c\b\win\src\third_party\webkit\source\platform\graphics\compositing\propertytreemanager.cpp(114): error C2039: 'InsertOwningIdForNode': is not a member of 'cc::ClipTree'
3 years, 9 months ago (2017-03-17 14:17:47 UTC) #13
danakj
Did you look thru other layer types that use SNC() right now to make sure ...
3 years, 9 months ago (2017-03-17 14:26:52 UTC) #14
weiliangc
On 2017/03/17 at 14:26:52, danakj wrote: > Did you look thru other layer types that ...
3 years, 9 months ago (2017-03-17 20:57:54 UTC) #15
weiliangc
Address review comments. Compile failure came from me forgot to change some function call on ...
3 years, 9 months ago (2017-03-17 20:58:42 UTC) #16
ajuma
Just one more thing: https://codereview.chromium.org/2755803003/diff/20001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2755803003/diff/20001/cc/layers/layer.cc#newcode832 cc/layers/layer.cc:832: inputs_.user_scrollable_vertical = vertical; On 2017/03/16 ...
3 years, 9 months ago (2017-03-17 23:32:17 UTC) #21
danakj
LGTM % ajuma https://codereview.chromium.org/2755803003/diff/40001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2755803003/diff/40001/cc/layers/layer.cc#newcode795 cc/layers/layer.cc:795: property_trees->transform_tree.UpdateNodeFromOwningLayerId(id())) { Just checking but this ...
3 years, 9 months ago (2017-03-20 15:58:12 UTC) #22
weiliangc
Addressed review comments. https://codereview.chromium.org/2755803003/diff/40001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2755803003/diff/40001/cc/layers/layer.cc#newcode795 cc/layers/layer.cc:795: property_trees->transform_tree.UpdateNodeFromOwningLayerId(id())) { On 2017/03/20 15:58:12, danakj ...
3 years, 9 months ago (2017-03-20 18:17:10 UTC) #23
ajuma
Thanks, lgtm https://codereview.chromium.org/2755803003/diff/60001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2755803003/diff/60001/cc/layers/layer.cc#newcode834 cc/layers/layer.cc:834: layer_tree_host_->property_trees()->scroll_tree.set_needs_update(true); Is this line needed? The scroll ...
3 years, 9 months ago (2017-03-20 18:22:49 UTC) #24
ajuma
https://codereview.chromium.org/2755803003/diff/60001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2755803003/diff/60001/cc/layers/layer.cc#newcode830 cc/layers/layer.cc:830: if (ScrollNode* node = layer_tree_host_->property_trees() Also, need to check ...
3 years, 9 months ago (2017-03-20 20:30:41 UTC) #29
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/2755803003/100001
3 years, 9 months ago (2017-03-21 19:46:29 UTC) #36
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 19:54:07 UTC) #39
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/1c0802c3c4c03b43efea23b82d7e...

Powered by Google App Engine
This is Rietveld 408576698