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

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

Issue 2565223002: Add more specific metrics for main thread scrolling reasons (Closed)
Patch Set: Test that there should be no reason set if setPrefercompositingToCDLTextEnabled(true) Created 4 years 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 497a1c0838bb49cba798958a4123b2276e07ba9f..4e0f8ed2b1c1d56924667baec14a48a188c1bf5a 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -805,6 +805,10 @@ class CORE_EXPORT FrameView final
// Main thread scrolling reasons for this object only. For all reasons,
// see: mainThreadScrollingReasons().
MainThreadScrollingReasons mainThreadScrollingReasonsPerFrame() const;
+ void adjustStyleRelatedMainThreadScrollingReasons(const uint32_t reason,
+ bool increase);
+ MainThreadScrollingReasons getStyleRelatedMainThreadScrollingReasons() const;
+
bool hasVisibleSlowRepaintViewportConstrainedObjects() const;
protected:
@@ -1176,6 +1180,11 @@ class CORE_EXPORT FrameView final
bool m_isStoringCompositedLayerDebugInfo;
MainThreadScrollingReasons m_mainThreadScrollingReasons;
+ // For recording main thread scrolling reasons
+ // due to layout object properties. e.g. opacity, transform.
+ // The size of the vector depends on the number of
+ // main thread scrolling reasons.
+ Vector<int> m_mainThreadScrollingReasonsCounter;
};
inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) {

Powered by Google App Engine
This is Rietveld 408576698