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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 2039363003: FirstMeaningfulPaint UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wait in renderer Created 4 years, 4 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/frame/FrameView.h
diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
index eccd1cb2c9a2b7eb2f04c1b6ddcb9535bd15ca39..8829b5fcc006824175773947ae8da159bb1dc2dc 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -32,6 +32,7 @@
#include "core/frame/RootFrameViewport.h"
#include "core/layout/ScrollAnchor.h"
#include "core/layout/api/LayoutViewItem.h"
+#include "core/paint/FirstMeaningfulPaintDetector.h"
#include "core/paint/PaintInvalidationCapableScrollableArea.h"
#include "core/paint/PaintPhase.h"
#include "platform/RuntimeEnabledFeatures.h"
@@ -262,6 +263,7 @@ public:
bool invalidateViewportConstrainedObjects();
+ void incrementLayoutObjectCount() { m_layoutObjectCounter.increment(); }
void incrementVisuallyNonEmptyCharacterCount(unsigned);
void incrementVisuallyNonEmptyPixelCount(const IntSize&);
bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; }
@@ -826,6 +828,7 @@ private:
unsigned m_visuallyNonEmptyCharacterCount;
unsigned m_visuallyNonEmptyPixelCount;
bool m_isVisuallyNonEmpty;
+ FirstMeaningfulPaintDetector::LayoutObjectCounter m_layoutObjectCounter;
Member<Node> m_fragmentAnchor;

Powered by Google App Engine
This is Rietveld 408576698