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

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

Issue 2565223002: Add more specific metrics for main thread scrolling reasons (Closed)
Patch Set: Relocate the logic of updating mainThreadScrollingFromStyle 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/paint/PaintLayerScrollableArea.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
index e50b22e5205e7f496382be7851be5b05eca1ee41..4632339d4927ee7841947a2413c0816fe88ec85e 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
@@ -475,6 +475,11 @@ class CORE_EXPORT PaintLayerScrollableArea final
void invalidateStickyConstraintsFor(PaintLayer*,
bool needsCompositingUpdate = true);
+ bool hasMainThreadScrollingReason(uint32_t reason) const {
+ return m_reasons & reason;
+ }
+ void flipMainThreadScrollingReason(uint32_t reason) { m_reasons ^= reason; }
+
uint64_t id() const;
DECLARE_VIRTUAL_TRACE();
@@ -579,6 +584,9 @@ class CORE_EXPORT PaintLayerScrollableArea final
std::unique_ptr<PaintLayerScrollableAreaRareData> m_rareData;
+ // MainThreadScrollingReason due to the property of each layout object
bokan 2016/12/14 13:28:59 "property of each layout object" -> "properties of
yigu 2016/12/14 21:17:33 Done.
+ uint32_t m_reasons;
+
#if ENABLE(ASSERT)
bool m_hasBeenDisposed;
#endif

Powered by Google App Engine
This is Rietveld 408576698