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

Unified Diff: trunk/src/content/browser/resources/media/data_series.js

Issue 15021010: Revert 199008 "Fixes a memory leak when running webrtc-internals..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 | « no previous file | trunk/src/content/browser/resources/media/stats_graph_helper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/browser/resources/media/data_series.js
===================================================================
--- trunk/src/content/browser/resources/media/data_series.js (revision 199028)
+++ trunk/src/content/browser/resources/media/data_series.js (working copy)
@@ -6,8 +6,6 @@
* A TimelineDataSeries collects an ordered series of (time, value) pairs,
* and converts them to graph points. It also keeps track of its color and
* current visibility state.
- * It keeps MAX_STATS_DATA_POINT_BUFFER_SIZE data points at most. Old data
- * points will be dropped when it reaches this size.
*/
var TimelineDataSeries = (function() {
'use strict';
@@ -37,9 +35,6 @@
addPoint: function(timeTicks, value) {
var time = new Date(timeTicks);
this.dataPoints_.push(new DataPoint(time, value));
-
- if (this.dataPoints_.length > MAX_STATS_DATA_POINT_BUFFER_SIZE)
- this.dataPoints_.shift();
},
isVisible: function() {
« no previous file with comments | « no previous file | trunk/src/content/browser/resources/media/stats_graph_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698