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

Unified Diff: third_party/WebKit/Source/core/paint/FramePainter.cpp

Issue 2872793002: Notify paint for each frame (Closed)
Patch Set: remove one comment Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/FramePainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/FramePainter.cpp b/third_party/WebKit/Source/core/paint/FramePainter.cpp
index dad69700113834beb63a0f3a560e64801972239d..b1965d6f0e9dfee0ecd9c1aa87cb7fa3c70bb19b 100644
--- a/third_party/WebKit/Source/core/paint/FramePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/FramePainter.cpp
@@ -9,6 +9,7 @@
#include "core/inspector/InspectorTraceEvents.h"
#include "core/layout/LayoutView.h"
#include "core/page/Page.h"
+#include "core/paint/FramePaintTiming.h"
#include "core/paint/LayoutObjectDrawingRecorder.h"
#include "core/paint/PaintInfo.h"
#include "core/paint/PaintLayer.h"
@@ -147,6 +148,7 @@ void FramePainter::PaintContents(GraphicsContext& context,
DCHECK(document->Lifecycle().GetState() >=
DocumentLifecycle::kCompositingClean);
+ FramePaintTiming frame_paint_timing(context, &GetFrameView().GetFrame());
TRACE_EVENT1("devtools.timeline,rail", "Paint", "data",
InspectorPaintEvent::Data(layout_view, LayoutRect(rect), 0));

Powered by Google App Engine
This is Rietveld 408576698