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

Unified Diff: Source/core/inspector/InspectorTimelineAgent.h

Issue 91183002: Timeline: do not rely on UpdateLayer & PaintLayer trace events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: re-upload Created 7 years, 1 month 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: Source/core/inspector/InspectorTimelineAgent.h
diff --git a/Source/core/inspector/InspectorTimelineAgent.h b/Source/core/inspector/InspectorTimelineAgent.h
index 0374ac9737ea598c008e84ae9416bb7b2192d0bf..8759d5b5acdbf8dff4d239fc8e3fba42fbf6a075 100644
--- a/Source/core/inspector/InspectorTimelineAgent.h
+++ b/Source/core/inspector/InspectorTimelineAgent.h
@@ -168,7 +168,7 @@ public:
void didRecalculateStyle();
void didRecalculateStyleForElement();
- void willPaint(RenderObject*);
+ void willPaint(RenderObject*, const GraphicsLayer*);
void didPaint(RenderObject*, const GraphicsLayer*, GraphicsContext*, const LayoutRect&);
void willPaintImage(RenderImage*);
@@ -280,6 +280,8 @@ private:
void localToPageQuad(const RenderObject& renderer, const LayoutRect&, FloatQuad*);
const TimelineTimeConverter& timeConverter() const { return m_timeConverter; }
const RenderImage* imageBeingPainted() const { return m_imageBeingPainted; }
+ int nodeBeingPainted() const { return m_nodeBeingPainted; }
+ int layerBeingPainted() const { return m_layerBeingPainted; }
long long nodeId(Node*);
long long nodeId(RenderObject*);
void releaseNodeIds();
@@ -324,6 +326,8 @@ private:
unsigned m_styleRecalcElementCounter;
int m_layerTreeId;
RenderImage* m_imageBeingPainted;
+ int m_nodeBeingPainted;
+ int m_layerBeingPainted;
Vector<String> m_consoleTimelines;
RefPtr<TypeBuilder::Array<TypeBuilder::Timeline::TimelineEvent> > m_bufferedEvents;
InspectorOverlay* m_overlay;
« no previous file with comments | « Source/core/inspector/InspectorInstrumentation.idl ('k') | Source/core/inspector/InspectorTimelineAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698