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

Issue 2623613008: Add a new top-level inspector timeline event for the PrePaint step (Closed)

Created:
3 years, 11 months ago by pdr.
Modified:
3 years, 11 months ago
Reviewers:
caseq, chrishtr, Xianzhu
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, pfeldman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a new top-level inspector timeline event for the PrePaint step Slimming paint invalidation moves paint invalidation from the "Update Layer Tree" step to a new "Pre-paint" step. This patch adds an accompanying inspector timeline event for this new lifecycle phase. In the code we use "pre-paint" to mean "before-paint" but that may be confusing to end-users who might confuse it with the pre-paint window, or pre-fetch concepts. "prepare paint" is used instead. Before this patch, paint invalidation is listed under the "Update Layer Tree" timeline. After this patch, paint invalidation is listed under the "Prepare Paint" timeline if --enable-slimming-paint-invalidation is used. BUG=679403

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
pdr.
3 years, 11 months ago (2017-01-10 17:24:17 UTC) #3
caseq
lgtm
3 years, 11 months ago (2017-01-10 17:44:45 UTC) #4
Xianzhu
lgtm lgtm. I should have named prePaint as preparePaint which looks better.
3 years, 11 months ago (2017-01-10 17:52:49 UTC) #5
chrishtr
lgtm
3 years, 11 months ago (2017-01-10 17:53:46 UTC) #7
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/2623613008/1
3 years, 11 months ago (2017-01-10 17:54:04 UTC) #8
chrishtr
Actually: why should we communicate "pre-paint" to developers at all? It seems better to fold ...
3 years, 11 months ago (2017-01-10 17:54:32 UTC) #10
caseq
On 2017/01/10 17:54:32, chrishtr wrote: > Actually: why should we communicate "pre-paint" to developers at ...
3 years, 11 months ago (2017-01-10 19:10:51 UTC) #11
chrishtr
On 2017/01/10 at 19:10:51, caseq wrote: > On 2017/01/10 17:54:32, chrishtr wrote: > > Actually: ...
3 years, 11 months ago (2017-01-10 19:15:45 UTC) #12
pdr.
On 2017/01/10 at 19:10:51, caseq wrote: > On 2017/01/10 17:54:32, chrishtr wrote: > > Actually: ...
3 years, 11 months ago (2017-01-10 19:23:40 UTC) #13
pdr.
On 2017/01/10 at 19:15:45, chrishtr wrote: > On 2017/01/10 at 19:10:51, caseq wrote: > > ...
3 years, 11 months ago (2017-01-10 19:31:21 UTC) #14
caseq
On 2017/01/10 19:23:40, pdr. wrote: > On 2017/01/10 at 19:10:51, caseq wrote: > > On ...
3 years, 11 months ago (2017-01-10 19:33:35 UTC) #15
chrishtr
On 2017/01/10 at 19:31:21, pdr wrote: > On 2017/01/10 at 19:15:45, chrishtr wrote: > > ...
3 years, 11 months ago (2017-01-10 19:45:16 UTC) #16
chrishtr
On 2017/01/10 at 19:33:35, caseq wrote: > On 2017/01/10 19:23:40, pdr. wrote: > > On ...
3 years, 11 months ago (2017-01-10 19:47:17 UTC) #17
Xianzhu
On 2017/01/10 19:45:16, chrishtr wrote: > On 2017/01/10 at 19:31:21, pdr wrote: > > On ...
3 years, 11 months ago (2017-01-10 19:59:13 UTC) #19
caseq
On 2017/01/10 19:59:13, Xianzhu wrote: > I think we can treat the per-layer paints as ...
3 years, 11 months ago (2017-01-10 20:12:50 UTC) #20
Xianzhu
On 2017/01/10 20:12:50, caseq wrote: > On 2017/01/10 19:59:13, Xianzhu wrote: > > > I ...
3 years, 11 months ago (2017-01-10 20:15:45 UTC) #21
pdr.
3 years, 11 months ago (2017-01-10 20:37:16 UTC) #22
On 2017/01/10 at 20:15:45, wangxianzhu wrote:
> On 2017/01/10 20:12:50, caseq wrote:
> > On 2017/01/10 19:59:13, Xianzhu wrote:
> > 
> > > I think we can treat the per-layer paints as one paint because we paint
all
> > the
> > > layers at once, then we can combine FrameView::prePaint() and
> > > FrameView::paintTree() into one Paint event in timeline.
> > 
> > Timeline currently expects a SkPicture for the painted layer to be emitted
from
> > within the Paint event for that layer, this is how we match pictures to
layers
> > in the Layers viewer, so this logic would have to be fixed as well.
> 
> I see. We should keep per-layer paints for SPv1.
> 
> I agree with Chris about pretending "prepare paint" as "update layer tree".

This was a good discussion. I also agree.

I've uploaded a new patch at https://codereview.chromium.org/2622983002 and will
close this review.

Powered by Google App Engine
This is Rietveld 408576698