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

Unified Diff: third_party/WebKit/Source/core/paint/PaintTiming.h

Issue 2883273003: Move the user interaction policy for FirstMeaningfulPaint UMA into renderer (Closed)
Patch Set: rebase Created 3 years, 6 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/PaintTiming.h
diff --git a/third_party/WebKit/Source/core/paint/PaintTiming.h b/third_party/WebKit/Source/core/paint/PaintTiming.h
index a9105d58ed9f5b87bb012b428be2086c9f5cbd23..e6e4e5f59ba6c849e86e82c6f118e2aa2ef81dff 100644
--- a/third_party/WebKit/Source/core/paint/PaintTiming.h
+++ b/third_party/WebKit/Source/core/paint/PaintTiming.h
@@ -50,7 +50,9 @@ class CORE_EXPORT PaintTiming final
void MarkFirstImagePaint();
void SetFirstMeaningfulPaintCandidate(double timestamp);
- void SetFirstMeaningfulPaint(double stamp);
+ void SetFirstMeaningfulPaint(
+ double stamp,
+ FirstMeaningfulPaintDetector::HadUserInput had_input);
void NotifyPaint(bool is_first_paint, bool text_painted, bool image_painted);
// The getters below return monotonically-increasing seconds, or zero if the
@@ -110,6 +112,8 @@ class CORE_EXPORT PaintTiming final
void SetFirstContentfulPaint(double stamp);
void RegisterNotifySwapTime(PaintEvent);
+ void ReportUserInputHistogram(
+ FirstMeaningfulPaintDetector::HadUserInput had_input);
double first_paint_ = 0.0;
double first_paint_swap_ = 0.0;

Powered by Google App Engine
This is Rietveld 408576698