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

Issue 2621193006: Reduce PropertyTreeState construction and copies (Closed)

Created:
3 years, 11 months ago by Xianzhu
Modified:
3 years, 11 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

Reduce PropertyTreeState construction and copies - Cache ObjectPaintProperties::contentsProperties() so that we don't create a new PropertyTreeState object on each call. - Check necessity of GeometryMapper invocation before creating localTreeState. This will avoid many PropertyTreeState constructions and RefPtr constructions/destructions which contributed about 6~8% of total PrePaint time for paint-offset-changes.html. Try jobs showed that this improved performance of the test by 1~8% on bots. BUG=678597 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2621193006 Cr-Commit-Position: refs/heads/master@{#443632} Committed: https://chromium.googlesource.com/chromium/src/+/fd01bedb5e520096733a05e9b92ee17d0ae8f848

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -54 lines) Patch
M third_party/WebKit/Source/core/paint/ObjectPaintProperties.h View 4 chunks +25 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp View 1 chunk +10 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.cpp View 5 chunks +46 lines, -36 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 6 chunks +8 lines, -7 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 15 (11 generated)
Xianzhu
3 years, 11 months ago (2017-01-13 17:41:55 UTC) #9
pdr.
LGTM, this is a great idea. Good implementation too
3 years, 11 months ago (2017-01-13 18:57:13 UTC) #10
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/2621193006/1
3 years, 11 months ago (2017-01-13 18:59:46 UTC) #12
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 19:07:31 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/fd01bedb5e520096733a05e9b92e...

Powered by Google App Engine
This is Rietveld 408576698