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

Issue 1651153003: [SPv2] Adds pre-computed paint property context to PaintLayer. (Closed)

Created:
4 years, 10 months ago by trchen
Modified:
4 years, 10 months ago
Reviewers:
chrishtr, pdr., jbroman
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[SPv2] Adds pre-computed paint property context to PaintLayer. This is part #1 of the CLs to associate overflow clip/scroll nodes to display items. This CL adds pre-computed paint context to PaintLayer, so a layer won't need to traverse the positional ancestor chain (which is different from paint ancestor chain) to find the nearest clip node. Committed: https://crrev.com/e849a2e8bf5bb255524af4fb27a7ae2f652fa123 Cr-Commit-Position: refs/heads/master@{#373718}

Patch Set 1 #

Total comments: 10

Patch Set 2 : rename & add comments #

Patch Set 3 : migrated the cache to ObjectPaintProperties #

Total comments: 7

Patch Set 4 : added tests. revised comments. renamed to recordTreeContextIfNeeded. #

Total comments: 15

Patch Set 5 : renamed the cache. revised comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -17 lines) Patch
M third_party/WebKit/Source/core/paint/ObjectPaintProperties.h View 1 2 3 4 5 chunks +32 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 2 3 4 3 chunks +19 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 1 2 3 4 3 chunks +52 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (12 generated)
trchen
[1/5] Split out of my previous CL.
4 years, 10 months ago (2016-02-01 23:57:35 UTC) #2
pdr.
https://codereview.chromium.org/1651153003/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.h File third_party/WebKit/Source/core/paint/PaintLayer.h (right): https://codereview.chromium.org/1651153003/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.h#newcode138 third_party/WebKit/Source/core/paint/PaintLayer.h:138: } cachedSPv2PaintParameters; Is this data actually rare or is ...
4 years, 10 months ago (2016-02-02 06:18:20 UTC) #3
jbroman
What do you mean by "collecting overflow clips"? Isn't the goal that we can just ...
4 years, 10 months ago (2016-02-02 16:11:13 UTC) #4
trchen
On 2016/02/02 16:11:13, jbroman wrote: > What do you mean by "collecting overflow clips"? Isn't ...
4 years, 10 months ago (2016-02-02 21:48:46 UTC) #6
trchen
https://codereview.chromium.org/1651153003/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.h File third_party/WebKit/Source/core/paint/PaintLayer.h (right): https://codereview.chromium.org/1651153003/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.h#newcode138 third_party/WebKit/Source/core/paint/PaintLayer.h:138: } cachedSPv2PaintParameters; On 2016/02/02 06:18:20, pdr wrote: > Is ...
4 years, 10 months ago (2016-02-02 21:48:53 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1651153003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1651153003/20001
4 years, 10 months ago (2016-02-03 00:02:27 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/119728)
4 years, 10 months ago (2016-02-03 01:24:10 UTC) #11
pdr.
Tien-Ren spent several hours with me and I think I finally understand this patch (and ...
4 years, 10 months ago (2016-02-03 03:20:21 UTC) #12
pdr.
Chris and I chatted about this this morning--specifically, the invalidation problem if we store the ...
4 years, 10 months ago (2016-02-03 19:37:33 UTC) #13
trchen
migrated the cache to ObjectPaintProperties
4 years, 10 months ago (2016-02-03 23:52:46 UTC) #14
pdr.
This is looking pretty good. Can you add one or two unit tests that show ...
4 years, 10 months ago (2016-02-03 23:56:11 UTC) #16
trchen
On 2016/02/03 23:56:11, pdr wrote: > This is looking pretty good. Can you add one ...
4 years, 10 months ago (2016-02-04 00:02:54 UTC) #17
trchen
https://codereview.chromium.org/1651153003/diff/40001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h File third_party/WebKit/Source/core/paint/ObjectPaintProperties.h (right): https://codereview.chromium.org/1651153003/diff/40001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h#newcode49 third_party/WebKit/Source/core/paint/ObjectPaintProperties.h:49: // +---[ transform ] The space created by CSS ...
4 years, 10 months ago (2016-02-04 00:03:02 UTC) #18
pdr.
https://codereview.chromium.org/1651153003/diff/40001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp (right): https://codereview.chromium.org/1651153003/diff/40001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#newcode313 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp:313: PassOwnPtr<ObjectPaintProperties::PropertyTreeContext> cacheTreeContextIfNeeded(LayoutObject& object, const PaintPropertyTreeBuilderContext& context) I still don't ...
4 years, 10 months ago (2016-02-04 00:06:45 UTC) #19
pdr.
On 2016/02/04 at 00:03:02, trchen wrote: > Ah ha! Yes we can make use of ...
4 years, 10 months ago (2016-02-04 00:07:17 UTC) #20
trchen
https://codereview.chromium.org/1651153003/diff/40001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h File third_party/WebKit/Source/core/paint/ObjectPaintProperties.h (right): https://codereview.chromium.org/1651153003/diff/40001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h#newcode59 third_party/WebKit/Source/core/paint/ObjectPaintProperties.h:59: TransformPaintPropertyNode* transformForLayerContents() const; On 2016/02/04 00:03:02, trchen wrote: > ...
4 years, 10 months ago (2016-02-04 00:07:51 UTC) #21
trchen
https://codereview.chromium.org/1651153003/diff/40001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp (right): https://codereview.chromium.org/1651153003/diff/40001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#newcode313 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp:313: PassOwnPtr<ObjectPaintProperties::PropertyTreeContext> cacheTreeContextIfNeeded(LayoutObject& object, const PaintPropertyTreeBuilderContext& context) On 2016/02/04 00:06:45, ...
4 years, 10 months ago (2016-02-04 00:51:29 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1651153003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1651153003/60001
4 years, 10 months ago (2016-02-04 00:52:51 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-04 02:35:06 UTC) #26
pdr.
Looking great, pretty much down to bikeshedding which is a good sign :) https://codereview.chromium.org/1651153003/diff/60001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h File ...
4 years, 10 months ago (2016-02-04 04:54:02 UTC) #27
chrishtr
Looking fine to me modulo pdr's comments.
4 years, 10 months ago (2016-02-04 18:52:25 UTC) #28
trchen
https://codereview.chromium.org/1651153003/diff/60001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h File third_party/WebKit/Source/core/paint/ObjectPaintProperties.h (right): https://codereview.chromium.org/1651153003/diff/60001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h#newcode8 third_party/WebKit/Source/core/paint/ObjectPaintProperties.h:8: #include "platform/geometry/LayoutPoint.h" On 2016/02/04 04:54:01, pdr wrote: > Can ...
4 years, 10 months ago (2016-02-04 23:08:40 UTC) #29
trchen
Revised CL uploaded. https://codereview.chromium.org/1651153003/diff/60001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h File third_party/WebKit/Source/core/paint/ObjectPaintProperties.h (right): https://codereview.chromium.org/1651153003/diff/60001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h#newcode8 third_party/WebKit/Source/core/paint/ObjectPaintProperties.h:8: #include "platform/geometry/LayoutPoint.h" I examined PaintPropertyTreePainter. The ...
4 years, 10 months ago (2016-02-04 23:49:01 UTC) #30
pdr.
LGTM, thanks for sticking through this review! I think we got to a pretty nice ...
4 years, 10 months ago (2016-02-05 00:06:39 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1651153003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1651153003/80001
4 years, 10 months ago (2016-02-05 00:13:12 UTC) #33
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-05 02:00:48 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1651153003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1651153003/80001
4 years, 10 months ago (2016-02-05 02:03:40 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-02-05 02:10:26 UTC) #39
commit-bot: I haz the power
4 years, 10 months ago (2016-02-05 02:11:15 UTC) #41
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e849a2e8bf5bb255524af4fb27a7ae2f652fa123
Cr-Commit-Position: refs/heads/master@{#373718}

Powered by Google App Engine
This is Rietveld 408576698