Index: Source/devtools/front_end/timeline/TimelinePanel.js |
diff --git a/Source/devtools/front_end/timeline/TimelinePanel.js b/Source/devtools/front_end/timeline/TimelinePanel.js |
index ae648e0a638d0486a2261267c5b8586bf7ab2e75..370bd701dfd49ada3f0fca1c3915b88b297c4520 100644 |
--- a/Source/devtools/front_end/timeline/TimelinePanel.js |
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js |
@@ -341,6 +341,11 @@ WebInspector.TimelinePanel.prototype = { |
this._captureTracingSetting, true, undefined, |
WebInspector.UIString("Capture tracing information"))); |
this._captureTracingSetting.addChangeListener(this._onModeChanged, this); |
+ } else if (WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled()) { |
+ this._captureLayersAndPicturesSetting = WebInspector.settings.createSetting("timelineCaptureLayersAndPictures", false); |
+ topPaneSidebarElement.appendChild(WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIString("Capture pictures"), |
+ this._captureLayersAndPicturesSetting, true, undefined, |
+ WebInspector.UIString("Capture graphics layer positions and painted pictures"))); |
} |
}, |
@@ -652,7 +657,7 @@ WebInspector.TimelinePanel.prototype = { |
_startRecording: function(userInitiated) |
{ |
this._userInitiatedRecording = userInitiated; |
- this._model.startRecording(this._captureStacksSetting.get(), this._captureMemorySetting.get()); |
+ this._model.startRecording(this._captureStacksSetting.get(), this._captureMemorySetting.get(), this._captureLayersAndPicturesSetting && this._captureLayersAndPicturesSetting.get()); |
if (WebInspector.experimentsSettings.timelineNoLiveUpdate.isEnabled() && this._lazyFrameModel) |
this._lazyFrameModel.setMergeRecords(false); |