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

Issue 2741833005: Make PrePaintTreeWalkContext::treeBuilderContext a unique_ptr (Closed)

Created:
3 years, 9 months ago by Xianzhu
Modified:
3 years, 9 months ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make PrePaintTreeWalkContext::treeBuilderContext a unique_ptr This prepares for https://codereview.chromium.org/2732573003/ which will make treeBuilderContext optional during tree walk. Now we can allocate PrePaintTreeWalkContext in stack because it becomes much smaller (264 bytes -> 96 bytes which is also much smaller than PaintInvalidationState (168 bytes) used in non-slimmingPaintInvalidation). BUG=698653 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2741833005 Cr-Commit-Position: refs/heads/master@{#456265} Committed: https://chromium.googlesource.com/chromium/src/+/82c89156820e06f1586edd0cc3850e7a5450921c

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -34 lines) Patch
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp View 10 chunks +32 lines, -29 lines 2 comments Download

Messages

Total messages: 17 (11 generated)
Xianzhu
3 years, 9 months ago (2017-03-10 20:46:44 UTC) #6
pdr.
Thank you for breaking this into a smaller patch. Much easier to review! https://codereview.chromium.org/2741833005/diff/1/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp File ...
3 years, 9 months ago (2017-03-10 20:52:39 UTC) #8
Xianzhu
https://codereview.chromium.org/2741833005/diff/1/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp File third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp (right): https://codereview.chromium.org/2741833005/diff/1/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp#newcode33 third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp:33: // PaintPropertyTreeBuilderContext is large and can lead to stack ...
3 years, 9 months ago (2017-03-10 21:54:48 UTC) #11
pdr.
On 2017/03/10 at 21:54:48, wangxianzhu wrote: > https://codereview.chromium.org/2741833005/diff/1/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp > File third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp (right): > > https://codereview.chromium.org/2741833005/diff/1/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp#newcode33 ...
3 years, 9 months ago (2017-03-10 22:23:22 UTC) #12
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/2741833005/1
3 years, 9 months ago (2017-03-11 00:06:24 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-11 02:57:56 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/82c89156820e06f1586edd0cc385...

Powered by Google App Engine
This is Rietveld 408576698