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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h

Issue 2015433004: Add main thread scrolling reasons to GraphicsLayer::layerTreeAsJSON. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/platform/graphics/GraphicsLayerDebugInfo.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h
index 183f7e30998f47b31a3147f85aedbd977a977249..696ba83a7bc6ee760787f0716dde1a6878de9005 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h
@@ -68,11 +68,15 @@ public:
void appendAnnotatedInvalidateRect(const FloatRect&, PaintInvalidationReason);
void clearAnnotatedInvalidateRects();
+ uint32_t getMainThreadScrollingReasons() const { return m_mainThreadScrollingReasons; }
+ void setMainThreadScrollingReasons(uint32_t reasons) { m_mainThreadScrollingReasons = reasons; }
+
private:
void appendAnnotatedInvalidateRects(base::trace_event::TracedValue*) const;
void appendCompositingReasons(base::trace_event::TracedValue*) const;
void appendSquashingDisallowedReasons(base::trace_event::TracedValue*) const;
void appendOwnerNodeId(base::trace_event::TracedValue*) const;
+ void appendMainThreadScrollingReasons(base::trace_event::TracedValue*) const;
struct AnnotatedInvalidationRect {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
@@ -85,6 +89,7 @@ private:
int m_ownerNodeId;
Vector<AnnotatedInvalidationRect> m_invalidations;
Vector<AnnotatedInvalidationRect> m_previousInvalidations;
+ uint32_t m_mainThreadScrollingReasons;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698