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

Issue 2621403003: cc: Don't create SyncedPropety instances on the main thread. (Closed)

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

Description

cc: Don't create SyncedPropety instances on the main thread. SyncedProperty is used as a synchronization primitive to track state on the impl thread, necessary to resolve conflicts for concurrent main-impl mutations. As such it should only exist on the impl thread. Currently, the ScrollTree creates these on the main thread while they only store the current main thread value. This is unnecessary complexity that can be avoided. This change makes ScrollTree store just the offset on the main thread, and a SyncedProperty for the offset on the impl thread. BUG=662619 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2621403003 Cr-Commit-Position: refs/heads/master@{#443325} Committed: https://chromium.googlesource.com/chromium/src/+/5889b84078b874e7682a4634b1fce6eedcac67fb

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed comments. #

Total comments: 3

Patch Set 3 : Comment update #

Patch Set 4 : win test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -165 lines) Patch
M cc/layers/layer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/fake_layer_tree_host.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_in_process.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_impl.h View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/property_tree.h View 1 3 chunks +41 lines, -13 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 9 chunks +127 lines, -105 lines 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 1 4 chunks +40 lines, -38 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
Khushal
I think some comments still need to be updated but otherwise does this look better?
3 years, 11 months ago (2017-01-11 19:47:39 UTC) #3
ajuma
Nice work, this looks great! https://codereview.chromium.org/2621403003/diff/1/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2621403003/diff/1/cc/trees/property_tree.cc#newcode1366 cc/trees/property_tree.cc:1366: // destroyed on the ...
3 years, 11 months ago (2017-01-11 22:35:51 UTC) #6
Khushal
Thanks Ali. Just one question about why the updates are done as a step after ...
3 years, 11 months ago (2017-01-11 23:04:53 UTC) #7
ajuma
Thanks, lgtm https://codereview.chromium.org/2621403003/diff/20001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2621403003/diff/20001/cc/trees/property_tree.cc#newcode1118 cc/trees/property_tree.cc:1118: // Maps for ScrollOffsets/SyncedScrollOffsets are intentionally ommitted ...
3 years, 11 months ago (2017-01-12 01:06:13 UTC) #8
Khushal
Thanks Ali! https://codereview.chromium.org/2621403003/diff/20001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2621403003/diff/20001/cc/trees/property_tree.cc#newcode1118 cc/trees/property_tree.cc:1118: // Maps for ScrollOffsets/SyncedScrollOffsets are intentionally ommitted ...
3 years, 11 months ago (2017-01-12 01:20:50 UTC) #9
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/2621403003/40001
3 years, 11 months ago (2017-01-12 01:21:44 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/362462)
3 years, 11 months ago (2017-01-12 03:07:23 UTC) #14
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/2621403003/60001
3 years, 11 months ago (2017-01-12 17:56:31 UTC) #17
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 19:38:27 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/5889b84078b874e7682a4634b1fc...

Powered by Google App Engine
This is Rietveld 408576698