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

Issue 1282713003: Painter side preparation for subtree caching (Closed)

Created:
5 years, 4 months ago by Xianzhu
Modified:
5 years, 4 months ago
Reviewers:
chrishtr, pdr.
CC:
blink-reviews, blink-reviews-paint_chromium.org, dshwang, slimming-paint-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Painter side preparation for subtree caching - Add back SubtreeRecorder in BlockPainter::paint(), but initiate it only when the block has multiple children or multiple line boxes to avoid too many of subtree display items; - Remove SubtreeRecorder::begin() because we ignore all paintings out of interest rect; - Add SubtreeRecorder::canUseCache() for future real implementation of subtree caching. BUG=410097 TEST=DisplayItemListPaintTest.* Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200359

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Check slimmingPaintV2Enabled #

Patch Set 4 : V2 #

Total comments: 4

Patch Set 5 : needsSubtreeRecorder #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -31 lines) Patch
M Source/core/layout/LayoutBlock.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/paint/BlockPainter.cpp View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M Source/core/paint/DisplayItemListPaintTest.cpp View 1 2 3 4 chunks +9 lines, -6 lines 0 comments Download
M Source/core/paint/SubtreeRecorder.h View 1 chunk +5 lines, -9 lines 0 comments Download
M Source/core/paint/SubtreeRecorder.cpp View 1 2 1 chunk +23 lines, -16 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Xianzhu
5 years, 4 months ago (2015-08-11 19:30:03 UTC) #2
chrishtr
https://codereview.chromium.org/1282713003/diff/20001/Source/core/paint/SubtreeRecorder.cpp File Source/core/paint/SubtreeRecorder.cpp (right): https://codereview.chromium.org/1282713003/diff/20001/Source/core/paint/SubtreeRecorder.cpp#newcode26 Source/core/paint/SubtreeRecorder.cpp:26: return; Bail if phase 2 is not on
5 years, 4 months ago (2015-08-11 20:29:16 UTC) #3
Xianzhu
https://codereview.chromium.org/1282713003/diff/20001/Source/core/paint/SubtreeRecorder.cpp File Source/core/paint/SubtreeRecorder.cpp (right): https://codereview.chromium.org/1282713003/diff/20001/Source/core/paint/SubtreeRecorder.cpp#newcode26 Source/core/paint/SubtreeRecorder.cpp:26: return; On 2015/08/11 20:29:15, chrishtr wrote: > Bail if ...
5 years, 4 months ago (2015-08-11 20:57:34 UTC) #4
pdr.
I like the direction this is going. https://codereview.chromium.org/1282713003/diff/60001/Source/core/paint/BlockPainter.cpp File Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/1282713003/diff/60001/Source/core/paint/BlockPainter.cpp#newcode35 Source/core/paint/BlockPainter.cpp:35: if ((m_layoutBlock.childrenInline() ...
5 years, 4 months ago (2015-08-11 21:08:41 UTC) #5
Xianzhu
https://codereview.chromium.org/1282713003/diff/60001/Source/core/paint/BlockPainter.cpp File Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/1282713003/diff/60001/Source/core/paint/BlockPainter.cpp#newcode35 Source/core/paint/BlockPainter.cpp:35: if ((m_layoutBlock.childrenInline() && m_layoutBlock.lineBoxes() && m_layoutBlock.lineBoxes()->firstLineBox() && m_layoutBlock.lineBoxes()->firstLineBox()->nextLineBox()) On ...
5 years, 4 months ago (2015-08-11 21:52:23 UTC) #6
pdr.
On 2015/08/11 at 21:52:23, wangxianzhu wrote: > https://codereview.chromium.org/1282713003/diff/60001/Source/core/paint/BlockPainter.cpp > File Source/core/paint/BlockPainter.cpp (right): > > https://codereview.chromium.org/1282713003/diff/60001/Source/core/paint/BlockPainter.cpp#newcode35 ...
5 years, 4 months ago (2015-08-11 21:53:35 UTC) #7
chrishtr
lgtm
5 years, 4 months ago (2015-08-11 21:56:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282713003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282713003/80001
5 years, 4 months ago (2015-08-11 21:56:17 UTC) #10
pdr.
On 2015/08/11 at 21:56:17, commit-bot wrote: > CQ is trying da patch. Follow status at ...
5 years, 4 months ago (2015-08-11 21:57:26 UTC) #11
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 23:20:36 UTC) #12
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200359

Powered by Google App Engine
This is Rietveld 408576698