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

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

Issue 319603007: DevTools: Add snapshot command log on the frontend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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/InspectorLayerTreeAgent.cpp
diff --git a/Source/core/inspector/InspectorLayerTreeAgent.cpp b/Source/core/inspector/InspectorLayerTreeAgent.cpp
index 40d0d35c7184d2a528326bbbfc78d5d81a34d7d1..d4f502156d4f33a9f8170efc3306598e050d86b1 100644
--- a/Source/core/inspector/InspectorLayerTreeAgent.cpp
+++ b/Source/core/inspector/InspectorLayerTreeAgent.cpp
@@ -382,12 +382,12 @@ void InspectorLayerTreeAgent::profileSnapshot(ErrorString* errorString, const St
}
}
-void InspectorLayerTreeAgent::snapshotCommandLog(ErrorString* errorString, const String& snapshotId, RefPtr<TypeBuilder::Array<JSONObject> >& commandLog)
+void InspectorLayerTreeAgent::snapshotCommandLog(ErrorString* errorString, const String& snapshotId, const int* fromStep, const int* toStep, RefPtr<TypeBuilder::Array<JSONObject> >& commandLog)
{
const GraphicsContextSnapshot* snapshot = snapshotById(errorString, snapshotId);
if (!snapshot)
return;
- commandLog = TypeBuilder::Array<JSONObject>::runtimeCast(snapshot->snapshotCommandLog());
+ commandLog = TypeBuilder::Array<JSONObject>::runtimeCast(snapshot->snapshotCommandLog(fromStep ? *fromStep : 0, toStep ? *toStep : 0));
}
void InspectorLayerTreeAgent::willAddPageOverlay(const GraphicsLayer* layer)

Powered by Google App Engine
This is Rietveld 408576698