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

Issue 11316297: Only do full tree sync if tree is actually changed, otherwise just push properties (Closed)

Created:
8 years ago by jamesr
Modified:
8 years ago
Reviewers:
danakj, shawnsingh
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Only do full tree sync if tree is actually changed, otherwise just push properties We only have to run the complete tree synchronization algorithm if the cc::Layer tree's structure is actually changed, otherwise we can just push properties over since the cc::LayerImpl tree structure is never changed outside of commit. Since scroll offset updates are tied into the tree synchronization algorithm, we currently have to do a full tree sync for scroll updates. Fixing this will speed up scroll operations but requires a bit more work. Speeds up cc_perftests tenTenSingleThread by 7.3% BUG=161166 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170881

Patch Set 1 #

Patch Set 2 : extra newline #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -85 lines) Patch
M cc/layer.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/layer.cc View 1 6 chunks +11 lines, -5 lines 1 comment Download
M cc/layer_tree_host.h View 2 chunks +2 lines, -0 lines 0 comments Download
M cc/layer_tree_host.cc View 5 chunks +37 lines, -2 lines 1 comment Download
M cc/layer_unittest.cc View 19 chunks +88 lines, -75 lines 0 comments Download
M cc/scrollbar_layer.h View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/scrollbar_layer.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M cc/tree_synchronizer.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jamesr
8 years ago (2012-12-01 23:28:27 UTC) #1
danakj
https://codereview.chromium.org/11316297/diff/3001/cc/layer.cc File cc/layer.cc (right): https://codereview.chromium.org/11316297/diff/3001/cc/layer.cc#newcode420 cc/layer.cc:420: setNeedsFullTreeSync(); How come a scrollOffset needs a full sync? ...
8 years ago (2012-12-03 18:46:24 UTC) #2
enne (OOO)
Ooh, this is a nice optimization. lgtm other than danakj's concerns. I am not sure ...
8 years ago (2012-12-03 21:26:47 UTC) #3
jamesr
On 2012/12/03 21:26:47, enne wrote: > Ooh, this is a nice optimization. lgtm other than ...
8 years ago (2012-12-03 22:25:23 UTC) #4
jamesr
On 2012/12/03 18:46:24, danakj wrote: > https://codereview.chromium.org/11316297/diff/3001/cc/layer.cc > File cc/layer.cc (right): > > https://codereview.chromium.org/11316297/diff/3001/cc/layer.cc#newcode420 > ...
8 years ago (2012-12-04 01:35:50 UTC) #5
danakj
ok lgtm2
8 years ago (2012-12-04 01:38:48 UTC) #6
jamesr
On 2012/12/04 01:35:50, jamesr wrote: > On 2012/12/03 18:46:24, danakj wrote: > > https://codereview.chromium.org/11316297/diff/3001/cc/layer.cc > ...
8 years ago (2012-12-04 01:40:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/11316297/3001
8 years ago (2012-12-04 01:42:09 UTC) #8
commit-bot: I haz the power
8 years ago (2012-12-04 04:25:12 UTC) #9
Message was sent while issue was closed.
Change committed as 170881

Powered by Google App Engine
This is Rietveld 408576698