| Index: third_party/WebKit/Source/devtools/front_end/timeline/MemoryCountersGraph.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/MemoryCountersGraph.js b/third_party/WebKit/Source/devtools/front_end/timeline/MemoryCountersGraph.js
|
| index 6df05005b9813ea1c2df1307915429beda2558f7..70dcbbb8a8fd4f0227b26e8e43d588f706765dd8 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/timeline/MemoryCountersGraph.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/timeline/MemoryCountersGraph.js
|
| @@ -44,10 +44,8 @@ WebInspector.MemoryCountersGraph = function(delegate, model, filters)
|
| this._countersByName["documents"] = this.createCounter(WebInspector.UIString("Documents"), WebInspector.UIString("Documents: %s"), "hsl(0, 90%, 43%)");
|
| this._countersByName["nodes"] = this.createCounter(WebInspector.UIString("Nodes"), WebInspector.UIString("Nodes: %s"), "hsl(120, 90%, 43%)");
|
| this._countersByName["jsEventListeners"] = this.createCounter(WebInspector.UIString("Listeners"), WebInspector.UIString("Listeners: %s"), "hsl(38, 90%, 43%)");
|
| - if (Runtime.experiments.isEnabled("gpuTimeline")) {
|
| - this._gpuMemoryCounter = this.createCounter(WebInspector.UIString("GPU Memory"), WebInspector.UIString("GPU Memory [KB]: %s"), "hsl(300, 90%, 43%)", Number.bytesToString);
|
| - this._countersByName["gpuMemoryUsedKB"] = this._gpuMemoryCounter;
|
| - }
|
| + this._gpuMemoryCounter = this.createCounter(WebInspector.UIString("GPU Memory"), WebInspector.UIString("GPU Memory [KB]: %s"), "hsl(300, 90%, 43%)", Number.bytesToString);
|
| + this._countersByName["gpuMemoryUsedKB"] = this._gpuMemoryCounter;
|
| }
|
|
|
| WebInspector.MemoryCountersGraph.prototype = {
|
| @@ -73,7 +71,7 @@ WebInspector.MemoryCountersGraph.prototype = {
|
| }
|
|
|
| var gpuMemoryLimitCounterName = "gpuMemoryLimitKB";
|
| - if (this._gpuMemoryCounter && (gpuMemoryLimitCounterName in counters))
|
| + if (gpuMemoryLimitCounterName in counters)
|
| this._gpuMemoryCounter.setLimit(counters[gpuMemoryLimitCounterName]);
|
| }
|
| this.scheduleRefresh();
|
|
|