| Index: third_party/WebKit/Source/core/frame/FrameView.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| index cb2a5560c05350440aff732decd2e03ff7948992..8494a860f4d09910b458768c54de89b22fd622f5 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -3236,6 +3236,14 @@
|
| });
|
| }
|
|
|
| +void FrameView::NotifyPaint(const PaintController& paint_controller) const {
|
| + DCHECK(frame_->GetDocument());
|
| + PaintTiming::From(*frame_->GetDocument())
|
| + .NotifyPaint(paint_controller.FirstPainted(),
|
| + paint_controller.TextPainted(),
|
| + paint_controller.ImagePainted());
|
| +}
|
| +
|
| void FrameView::PaintTree() {
|
| TRACE_EVENT0("blink", "FrameView::paintTree");
|
| SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.Paint.UpdateTime");
|
| @@ -3256,6 +3264,7 @@
|
| graphics_context.SetPrinting(true);
|
| Paint(graphics_context, CullRect(LayoutRect::InfiniteIntRect()));
|
| paint_controller_->CommitNewDisplayItems(LayoutSize());
|
| + NotifyPaint(*paint_controller_);
|
| }
|
| } else {
|
| // A null graphics layer can occur for painting of SVG images that are not
|
| @@ -3297,6 +3306,7 @@
|
| DCHECK(!RuntimeEnabledFeatures::slimmingPaintV2Enabled());
|
| if (graphics_layer->DrawsContent()) {
|
| graphics_layer->Paint(nullptr);
|
| + NotifyPaint(graphics_layer->GetPaintController());
|
| }
|
|
|
| if (GraphicsLayer* mask_layer = graphics_layer->MaskLayer())
|
|
|