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

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

Issue 14741014: Timeline: add reference to root node of layer in Rasterize event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
« no previous file with comments | « Source/core/inspector/TimelineRecordFactory.h ('k') | Source/core/inspector/TimelineTraceEventProcessor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/TimelineRecordFactory.cpp
diff --git a/Source/core/inspector/TimelineRecordFactory.cpp b/Source/core/inspector/TimelineRecordFactory.cpp
index 2343cfb6d7135da9cb52120f47d589f51aae7200..78b8f6e519e8213d93d6bb9f86b2b5128f9906b7 100644
--- a/Source/core/inspector/TimelineRecordFactory.cpp
+++ b/Source/core/inspector/TimelineRecordFactory.cpp
@@ -234,7 +234,7 @@ static PassRefPtr<InspectorArray> createQuad(const FloatQuad& quad)
return array.release();
}
-PassRefPtr<InspectorObject> TimelineRecordFactory::createPaintData(const FloatQuad& quad, int layerRootNodeId)
+PassRefPtr<InspectorObject> TimelineRecordFactory::createPaintData(const FloatQuad& quad, long long layerRootNodeId)
{
RefPtr<InspectorObject> data = InspectorObject::create();
data->setArray("clip", createQuad(quad));
@@ -243,7 +243,15 @@ PassRefPtr<InspectorObject> TimelineRecordFactory::createPaintData(const FloatQu
return data.release();
}
-void TimelineRecordFactory::appendLayoutRoot(InspectorObject* data, const FloatQuad& quad, int rootNodeId)
+PassRefPtr<InspectorObject> TimelineRecordFactory::createRasterizeData(long long layerRootNodeId)
+{
+ RefPtr<InspectorObject> data = InspectorObject::create();
+ if (layerRootNodeId)
+ data->setNumber("layerRootNode", layerRootNodeId);
+ return data.release();
+}
+
+void TimelineRecordFactory::appendLayoutRoot(InspectorObject* data, const FloatQuad& quad, long long rootNodeId)
{
data->setArray("root", createQuad(quad));
if (rootNodeId)
« no previous file with comments | « Source/core/inspector/TimelineRecordFactory.h ('k') | Source/core/inspector/TimelineTraceEventProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698