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

Issue 2811023002: Move LayoutBoxModelObject's PaintLayer member to rare paint data (Closed)

Created:
3 years, 8 months ago by pdr.
Modified:
3 years, 8 months ago
Reviewers:
chrishtr, Xianzhu
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/heads/master
Project:
chromium
Visibility:
Public.

Description

Move LayoutBoxModelObject's PaintLayer member to rare paint data This patch removes the PaintLayer member from LayoutBoxModelObject and puts it in RarePaintData. This will save one pointer of memory and in the common case RarePaintData will already exist. Two minor cleanups have been included: 1) LayoutBoxModelObject::DestroyLayer has been changed to only get called when a layer exists. 2) LayoutBoxModelObject::CreateLayer has been refactored to work more like DestroyLayer. Instead of doing insert/remove logic in this function, the caller is now responsible (InsertOnlyThisLayerAfterStyleChange). BUG=700452 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2811023002 Cr-Commit-Position: refs/heads/master@{#463888} Committed: https://chromium.googlesource.com/chromium/src/+/782b87888ae14a5531d8c248fb2c3337dc638e04

Patch Set 1 #

Total comments: 4

Patch Set 2 : Minor cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -31 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h View 1 4 chunks +11 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 1 5 chunks +13 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/RarePaintData.h View 3 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/RarePaintData.cpp View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
pdr.
3 years, 8 months ago (2017-04-11 03:37:41 UTC) #6
chrishtr
https://codereview.chromium.org/2811023002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/2811023002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp#newcode332 third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp:332: CreateLayer(); Move 333 inside and call this CreateLayerAfterStyleChange? https://codereview.chromium.org/2811023002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h ...
3 years, 8 months ago (2017-04-11 21:52:34 UTC) #9
pdr.
https://codereview.chromium.org/2811023002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/2811023002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp#newcode332 third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp:332: CreateLayer(); On 2017/04/11 at 21:52:34, chrishtr wrote: > Move ...
3 years, 8 months ago (2017-04-11 22:36:01 UTC) #11
chrishtr
lgtm
3 years, 8 months ago (2017-04-11 22:39:06 UTC) #13
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/2811023002/20001
3 years, 8 months ago (2017-04-11 22:40:15 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_layout_tests_slimming_paint_v2 on master.tryserver.chromium.linux (JOB_TIMED_OUT, build hasn't started yet, builder ...
3 years, 8 months ago (2017-04-12 00:42:41 UTC) #16
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/2811023002/20001
3 years, 8 months ago (2017-04-12 01:35:35 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 01:47:53 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/782b87888ae14a5531d8c248fb2c...

Powered by Google App Engine
This is Rietveld 408576698