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

Issue 2489893002: [SPv2] Track paint offset change (Closed)

Created:
4 years, 1 month ago by Xianzhu
Modified:
4 years, 1 month ago
Reviewers:
chrishtr, pdr.
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[SPInvalidation/SPv2] Track paint offset change This is for paint invalidation and partial paint property tree update. For SPv2 paint invalidation this can replace the old workarounds. It doesn't work for SPv1 paint invalidation (even slimmingPaintInvalidation) because PaintPropertyTreeBuilder disregards paint invalidation containers when calculating paint offsets. BUG=660195 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/4a4980562262f80dfb66739d84c49251164ac373 Cr-Commit-Position: refs/heads/master@{#431591}

Patch Set 1 #

Patch Set 2 : - #

Patch Set 3 : Fix test failures #

Total comments: 17

Patch Set 4 : - #

Patch Set 5 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -22 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-slimming-paint-v2 View 1 2 3 4 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 4 3 chunks +17 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/BlockPainter.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BoxPainter.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BoxPainter.cpp View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FrameSetPainter.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/InlinePainter.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp View 1 1 chunk +20 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPainter.h View 1 2 3 3 chunks +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPainter.cpp View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.cpp View 1 2 3 4 3 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PartPainter.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ReplacedPainter.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGRootPainter.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/TableRowPainter.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/TableSectionPainter.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 41 (25 generated)
Xianzhu
Planned to also use this for SlimmingPaintInvalidation, but found that it's hard to make paint ...
4 years, 1 month ago (2016-11-09 17:46:57 UTC) #5
pdr.
Looks great, just a few minor questions/comments. https://codereview.chromium.org/2489893002/diff/40001/third_party/WebKit/Source/core/paint/ObjectPainter.cpp File third_party/WebKit/Source/core/paint/ObjectPainter.cpp (right): https://codereview.chromium.org/2489893002/diff/40001/third_party/WebKit/Source/core/paint/ObjectPainter.cpp#newcode702 third_party/WebKit/Source/core/paint/ObjectPainter.cpp:702: if (paintInfo.getGlobalPaintFlags() ...
4 years, 1 month ago (2016-11-10 07:35:32 UTC) #14
Xianzhu
https://codereview.chromium.org/2489893002/diff/40001/third_party/WebKit/Source/core/paint/ObjectPainter.cpp File third_party/WebKit/Source/core/paint/ObjectPainter.cpp (right): https://codereview.chromium.org/2489893002/diff/40001/third_party/WebKit/Source/core/paint/ObjectPainter.cpp#newcode702 third_party/WebKit/Source/core/paint/ObjectPainter.cpp:702: if (paintInfo.getGlobalPaintFlags() != GlobalPaintNormalPhase) On 2016/11/10 07:35:32, pdr. wrote: ...
4 years, 1 month ago (2016-11-10 17:41:10 UTC) #16
chrishtr
On 2016/11/09 at 17:46:57, wangxianzhu wrote: > Planned to also use this for SlimmingPaintInvalidation, but ...
4 years, 1 month ago (2016-11-10 18:41:55 UTC) #18
chrishtr
https://codereview.chromium.org/2489893002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/2489893002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1687 third_party/WebKit/Source/core/layout/LayoutObject.h:1687: m_layoutObject.m_previousPaintOffset = p; DCHECK(slimmingPaintV2Enabled()) https://codereview.chromium.org/2489893002/diff/40001/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp File third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp (right): https://codereview.chromium.org/2489893002/diff/40001/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp#newcode545 ...
4 years, 1 month ago (2016-11-10 18:42:00 UTC) #19
Xianzhu
On 2016/11/10 18:41:55, chrishtr wrote: > On 2016/11/09 at 17:46:57, wangxianzhu wrote: > > Planned ...
4 years, 1 month ago (2016-11-10 18:49:56 UTC) #21
pdr.
LGTM here, but please wait for chrishtr to be happy too https://codereview.chromium.org/2489893002/diff/40001/third_party/WebKit/Source/core/paint/ObjectPainter.cpp File third_party/WebKit/Source/core/paint/ObjectPainter.cpp (right): ...
4 years, 1 month ago (2016-11-10 18:54:11 UTC) #22
Xianzhu
https://codereview.chromium.org/2489893002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/2489893002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1687 third_party/WebKit/Source/core/layout/LayoutObject.h:1687: m_layoutObject.m_previousPaintOffset = p; On 2016/11/10 18:42:00, chrishtr wrote: > ...
4 years, 1 month ago (2016-11-10 22:51:50 UTC) #25
chrishtr
LGTM modulo https://codereview.chromium.org/2493673005/
4 years, 1 month ago (2016-11-10 23:03:45 UTC) #26
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/2489893002/80001
4 years, 1 month ago (2016-11-11 05:40:31 UTC) #29
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/330006)
4 years, 1 month ago (2016-11-11 07:10:52 UTC) #31
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/2489893002/80001
4 years, 1 month ago (2016-11-11 07:11:48 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/335587)
4 years, 1 month ago (2016-11-11 09:08:03 UTC) #35
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/2489893002/80001
4 years, 1 month ago (2016-11-11 16:41:58 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-11 17:57:09 UTC) #39
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 18:27:57 UTC) #41
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4a4980562262f80dfb66739d84c49251164ac373
Cr-Commit-Position: refs/heads/master@{#431591}

Powered by Google App Engine
This is Rietveld 408576698