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

Issue 2877673002: Rewrite Layer::SetScrollOffset{FromImplSide} property tree fast-path (Closed)

Created:
3 years, 7 months ago by pdr.
Modified:
3 years, 7 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup the Layer::SetScrollOffset{FromImplSide} property tree fast-path This patch updates Layer::SetScrollOffset{FromImplSide} to clarify how the scroll offset fast-path works: 1) Existing property nodes are updated if they exist without invalidating the property trees. 2) If no existing property nodes exist, the property trees should already be marked as needig a full rebuild which will update the scroll offset. DCHECKs have been added to clarify: * SetScrollOffset should not be called for non-scrollable Layers. * The scroll transform node does not need to be looked up using layer ids because it is available via the Layer's transform_node_index(). This patch removes two users of transform node's owning layer id. BUG=693740 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2877673002 Cr-Commit-Position: refs/heads/master@{#471490} Committed: https://chromium.googlesource.com/chromium/src/+/64b691c1dfc3e667a1c615e29abf08304c8d5734

Patch Set 1 #

Patch Set 2 : Suppress bug in PaintArtifactCompositor #

Total comments: 10

Patch Set 3 : Address reviewer comments with simpler "UpdateScrollOffset" fn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -22 lines) Patch
M cc/layers/layer.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 chunks +24 lines, -22 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
pdr.
3 years, 7 months ago (2017-05-11 17:25:47 UTC) #6
wkorman
https://codereview.chromium.org/2877673002/diff/20001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2877673002/diff/20001/cc/layers/layer.cc#newcode814 cc/layers/layer.cc:814: bool Layer::UpdateExistingScrollOffsetPropertyTreeNodes( Add unit test for this? https://codereview.chromium.org/2877673002/diff/20001/cc/layers/layer.cc#newcode817 cc/layers/layer.cc:817: ...
3 years, 7 months ago (2017-05-11 17:42:14 UTC) #10
enne (OOO)
Looks good in general. https://codereview.chromium.org/2877673002/diff/20001/cc/layers/layer.h File cc/layers/layer.h (right): https://codereview.chromium.org/2877673002/diff/20001/cc/layers/layer.h#newcode512 cc/layers/layer.h:512: bool UpdateExistingScrollOffsetPropertyTreeNodes(const gfx::ScrollOffset&); I assume ...
3 years, 7 months ago (2017-05-11 17:44:28 UTC) #11
pdr.
Please take another look https://codereview.chromium.org/2877673002/diff/20001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2877673002/diff/20001/cc/layers/layer.cc#newcode814 cc/layers/layer.cc:814: bool Layer::UpdateExistingScrollOffsetPropertyTreeNodes( On 2017/05/11 at ...
3 years, 7 months ago (2017-05-11 18:03:37 UTC) #12
enne (OOO)
lgtm
3 years, 7 months ago (2017-05-11 18:05:37 UTC) #13
wkorman
lgtm https://codereview.chromium.org/2877673002/diff/20001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2877673002/diff/20001/cc/layers/layer.cc#newcode814 cc/layers/layer.cc:814: bool Layer::UpdateExistingScrollOffsetPropertyTreeNodes( On 2017/05/11 18:03:37, pdr. wrote: > ...
3 years, 7 months ago (2017-05-11 18:21:38 UTC) #14
pdr.
On 2017/05/11 at 18:21:38, wkorman wrote: > lgtm > > https://codereview.chromium.org/2877673002/diff/20001/cc/layers/layer.cc > File cc/layers/layer.cc (right): ...
3 years, 7 months ago (2017-05-11 18:22:26 UTC) #15
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/2877673002/40001
3 years, 7 months ago (2017-05-12 15:08:34 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/292489)
3 years, 7 months ago (2017-05-12 17:43:14 UTC) #19
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/2877673002/40001
3 years, 7 months ago (2017-05-12 22:10:07 UTC) #21
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 23:38:15 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/64b691c1dfc3e667a1c615e29abf...

Powered by Google App Engine
This is Rietveld 408576698