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

Unified Diff: Source/devtools/front_end/timeline/TimelineModel.js

Issue 709423002: DevTools: remove old Timeline front-end implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated LayoutTests/inspector/layers/layer-canvas-log.html Created 6 years, 1 month 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/devtools/front_end/timeline/TimelineModel.js
diff --git a/Source/devtools/front_end/timeline/TimelineModel.js b/Source/devtools/front_end/timeline/TimelineModel.js
index e6f499fca8c9efe34b9359ccb3b7aa150f3512ca..feebd1f74567ae6b5966e164b34dfc7836537877 100644
--- a/Source/devtools/front_end/timeline/TimelineModel.js
+++ b/Source/devtools/front_end/timeline/TimelineModel.js
@@ -557,44 +557,6 @@ WebInspector.TimelineRecordVisibleTypeFilter.prototype = {
/**
* @constructor
- */
-WebInspector.TimelineMergingRecordBuffer = function()
-{
- this._backgroundRecordsBuffer = [];
-}
-
-/**
- * @constructor
- */
-WebInspector.TimelineMergingRecordBuffer.prototype = {
- /**
- * @param {string} thread
- * @param {!Array.<!WebInspector.TimelineModel.Record>} records
- * @return {!Array.<!WebInspector.TimelineModel.Record>}
- */
- process: function(thread, records)
- {
- if (thread !== WebInspector.TimelineModel.MainThreadName) {
- this._backgroundRecordsBuffer = this._backgroundRecordsBuffer.concat(records);
- return [];
- }
- /**
- * @param {!WebInspector.TimelineModel.Record} a
- * @param {!WebInspector.TimelineModel.Record} b
- */
- function recordTimestampComparator(a, b)
- {
- // Never return 0, as the merge function will squash identical entries.
- return a.startTime() < b.startTime() ? -1 : 1;
- }
- var result = this._backgroundRecordsBuffer.mergeOrdered(records, recordTimestampComparator);
- this._backgroundRecordsBuffer = [];
- return result;
- }
-}
-
-/**
- * @constructor
* @implements {WebInspector.OutputStreamDelegate}
* @param {!WebInspector.TimelineModel} model
* @param {!WebInspector.Progress} progress
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineFrameModel.js ('k') | Source/devtools/front_end/timeline/TimelineModelImpl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698