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

Unified Diff: Source/core/inspector/TimelineRecordFactory.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/TimelineRecordFactory.cpp
diff --git a/Source/core/inspector/TimelineRecordFactory.cpp b/Source/core/inspector/TimelineRecordFactory.cpp
index 4c4189d82d9d06559cc5540a86873d52566db3c5..a60515b045844a83b820961d771620d58d418923 100644
--- a/Source/core/inspector/TimelineRecordFactory.cpp
+++ b/Source/core/inspector/TimelineRecordFactory.cpp
@@ -254,6 +254,13 @@ PassRefPtr<JSONObject> TimelineRecordFactory::createPaintData(const FloatQuad& q
return data.release();
}
+PassRefPtr<JSONObject> TimelineRecordFactory::createFrameData(int frameId)
+{
+ RefPtr<JSONObject> data = JSONObject::create();
+ data->setNumber("id", frameId);
+ return data.release();
+}
+
void TimelineRecordFactory::appendLayoutRoot(JSONObject* data, const FloatQuad& quad, long long rootNodeId)
{
data->setArray("root", createQuad(quad));

Powered by Google App Engine
This is Rietveld 408576698