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

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

Issue 54273005: DevTools: add ids to compositor frames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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: Source/core/inspector/InspectorTimelineAgent.cpp
diff --git a/Source/core/inspector/InspectorTimelineAgent.cpp b/Source/core/inspector/InspectorTimelineAgent.cpp
index 41db9181ad76cc38c168348621cb7b13e2d90860..1a3f6e15a76c7c6adc320d1400ac6f6f2cf66c99 100644
--- a/Source/core/inspector/InspectorTimelineAgent.cpp
+++ b/Source/core/inspector/InspectorTimelineAgent.cpp
@@ -307,10 +307,11 @@ void InspectorTimelineAgent::innerStop(bool fromConsole)
m_frontend->stopped(&fromConsole);
}
-void InspectorTimelineAgent::didBeginFrame()
+void InspectorTimelineAgent::didBeginFrame(int frameId)
{
TRACE_EVENT_INSTANT0(InternalEventCategory, InstrumentationEvents::BeginFrame);
m_pendingFrameRecord = TimelineRecordFactory::createGenericRecord(timestamp(), 0, TimelineRecordType::BeginFrame);
+ m_pendingFrameRecord->setObject("data", TimelineRecordFactory::createFrameData(frameId));
}
void InspectorTimelineAgent::didCancelFrame()
@@ -904,8 +905,6 @@ void InspectorTimelineAgent::commitFrameRecord()
{
if (!m_pendingFrameRecord)
return;
-
- m_pendingFrameRecord->setObject("data", JSONObject::create());
innerAddRecordToTimeline(m_pendingFrameRecord.release());
}

Powered by Google App Engine
This is Rietveld 408576698