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

Issue 1088773003: Reuse property trees (Closed)

Created:
5 years, 8 months ago by Ian Vollick
Modified:
5 years, 8 months ago
Reviewers:
ajuma, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reuse property trees This patch adds a needs_rebuild boolean to PropertyTrees and resets it each time the trees are rebuilt. Certain layer operations do not require a rebuild and can instead mutate an existing property tree node (e.g., updating a scroll offset). Special care is taken in Layer to avoid setting needs_rebuild in these cases. BUG=470272 Committed: https://crrev.com/5057e1ee8ec082969674af4518082e9845417229 Cr-Commit-Position: refs/heads/master@{#325694}

Patch Set 1 : . #

Patch Set 2 : . #

Patch Set 3 : no more first tick nonsense. #

Total comments: 18

Patch Set 4 : respond to reviewer feedback #

Patch Set 5 : remove unrelated change #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -30 lines) Patch
M cc/layers/layer.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M cc/layers/layer.cc View 1 2 3 11 chunks +154 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host.h View 3 chunks +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 8 chunks +15 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_common.h View 1 2 3 4 chunks +8 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 2 chunks +14 lines, -1 line 1 comment Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 10 chunks +34 lines, -0 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 5 chunks +18 lines, -8 lines 0 comments Download
M cc/trees/property_tree.cc View 3 chunks +22 lines, -0 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 11 chunks +39 lines, -11 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
Ian Vollick
5 years, 8 months ago (2015-04-16 13:57:38 UTC) #7
ajuma
https://codereview.chromium.org/1088773003/diff/140001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1088773003/diff/140001/cc/layers/layer.cc#newcode184 cc/layers/layer.cc:184: layer_tree_host_->property_trees()->needs_rebuild = true; LayerTreeHost::SetNeedsFullTreeSync will trigger a rebuild, so ...
5 years, 8 months ago (2015-04-16 14:52:14 UTC) #8
ajuma
https://codereview.chromium.org/1088773003/diff/140001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1088773003/diff/140001/cc/layers/layer.cc#newcode657 cc/layers/layer.cc:657: SetNeedsCommit(); On 2015/04/16 14:52:14, ajuma wrote: > As a ...
5 years, 8 months ago (2015-04-16 14:55:05 UTC) #9
enne (OOO)
I like the direction here in general. It looks like ajuma has picked over where ...
5 years, 8 months ago (2015-04-16 21:49:33 UTC) #11
Ian Vollick
https://codereview.chromium.org/1088773003/diff/140001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1088773003/diff/140001/cc/layers/layer.cc#newcode369 cc/layers/layer.cc:369: SetNeedsCommit(); On 2015/04/16 14:52:14, ajuma wrote: > In what ...
5 years, 8 months ago (2015-04-17 14:56:22 UTC) #12
ajuma
Thanks, lgtm!
5 years, 8 months ago (2015-04-17 15:15:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1088773003/180001
5 years, 8 months ago (2015-04-17 18:14:02 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:180001)
5 years, 8 months ago (2015-04-17 19:12:41 UTC) #16
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/5057e1ee8ec082969674af4518082e9845417229 Cr-Commit-Position: refs/heads/master@{#325694}
5 years, 8 months ago (2015-04-17 19:13:42 UTC) #17
enne (OOO)
5 years, 8 months ago (2015-04-17 20:04:22 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/1088773003/diff/180001/cc/trees/layer_tree_ho...
File cc/trees/layer_tree_host_common.cc (right):

https://codereview.chromium.org/1088773003/diff/180001/cc/trees/layer_tree_ho...
cc/trees/layer_tree_host_common.cc:2559: CHECK(draw_opacities_match)
On 2015/04/17 14:56:22, vollick wrote:
> On 2015/04/16 21:49:33, enne wrote:
> > This seems like it should get done in a separate patch?
> 
> Done.

<_<

Powered by Google App Engine
This is Rietveld 408576698