| Index: chrome/browser/resources/tracing/timeline_view.js
|
| diff --git a/chrome/browser/resources/gpu_internals/timeline_view.js b/chrome/browser/resources/tracing/timeline_view.js
|
| similarity index 95%
|
| rename from chrome/browser/resources/gpu_internals/timeline_view.js
|
| rename to chrome/browser/resources/tracing/timeline_view.js
|
| index c4e1c3e63f456ac68ff153fbc20890cfd0020e73..107ba4863094b83c2a498321af9ad80ee40c0ec7 100644
|
| --- a/chrome/browser/resources/gpu_internals/timeline_view.js
|
| +++ b/chrome/browser/resources/tracing/timeline_view.js
|
| @@ -4,10 +4,10 @@
|
|
|
|
|
| /**
|
| - * @fileoverview TimelineView visualizes GPU_TRACE events using the
|
| - * gpu.Timeline component.
|
| + * @fileoverview TimelineView visualizes TRACE_EVENT events using the
|
| + * tracing.Timeline component.
|
| */
|
| -cr.define('gpu', function() {
|
| +cr.define('tracing', function() {
|
| function tsRound(ts) {
|
| return Math.round(ts * 1000.0) / 1000.0;
|
| }
|
| @@ -65,14 +65,14 @@ cr.define('gpu', function() {
|
|
|
| set traceEvents(traceEvents) {
|
| console.log('TimelineView.refresh');
|
| - this.timelineModel_ = new gpu.TimelineModel(traceEvents);
|
| + this.timelineModel_ = new tracing.TimelineModel(traceEvents);
|
|
|
| // remove old timeline
|
| this.timelineContainer_.textContent = '';
|
|
|
| // create new timeline if needed
|
| if (traceEvents.length) {
|
| - this.timeline_ = new gpu.Timeline();
|
| + this.timeline_ = new tracing.Timeline();
|
| this.timeline_.model = this.timelineModel_;
|
| this.timelineContainer_.appendChild(this.timeline_);
|
| this.timeline_.onResize();
|
|
|