| Index: chrome/browser/resources/gpu_internals.js
|
| diff --git a/chrome/browser/resources/gpu_internals.js b/chrome/browser/resources/gpu_internals.js
|
| index fcc60c8c6e90c0dbab68d3104348f4292610afd4..58bd47034ae15c7d7c5f49b7db18541d9516c949 100644
|
| --- a/chrome/browser/resources/gpu_internals.js
|
| +++ b/chrome/browser/resources/gpu_internals.js
|
| @@ -2,57 +2,19 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -<include src="gpu_internals/overlay.js"/>
|
| <include src="gpu_internals/browser_bridge.js"/>
|
| -<include src="gpu_internals/tracing_controller.js"/>
|
| <include src="gpu_internals/info_view.js"/>
|
| -<include src="gpu_internals/timeline_model.js"/>
|
| -<include src="gpu_internals/sorted_array_utils.js"/>
|
| -<include src="gpu_internals/timeline.js"/>
|
| -<include src="gpu_internals/timeline_track.js"/>
|
| -<include src="gpu_internals/fast_rect_renderer.js"/>
|
| -<include src="gpu_internals/profiling_view.js"/>
|
| -<include src="gpu_internals/timeline_view.js"/>
|
|
|
| var browserBridge;
|
| -var tracingController;
|
| -var timelineView; // made global for debugging purposes only
|
| -var profilingView; // made global for debugging purposes only
|
|
|
| /**
|
| * Main entry point. called once the page has loaded.
|
| */
|
| function onLoad() {
|
| browserBridge = new gpu.BrowserBridge();
|
| - tracingController = new gpu.TracingController();
|
|
|
| // Create the views.
|
| - cr.ui.decorate('#info-view', gpu.InfoView);
|
| -
|
| - profilingView = $('profiling-view');
|
| - cr.ui.decorate(profilingView, gpu.ProfilingView);
|
| -
|
| - // Create the main tab control
|
| - var tabs = $('main-tabs');
|
| - cr.ui.decorate(tabs, cr.ui.TabBox);
|
| -
|
| - // Sync the main-tabs selectedTabs in-sync with the location.
|
| - tabs.addEventListener('selectedChange', function() {
|
| - if (tabs.selectedTab.id) {
|
| - history.pushState('', '', '#' + tabs.selectedTab.id);
|
| - }
|
| - });
|
| - window.onhashchange = function() {
|
| - var cur = window.location.hash;
|
| - if (cur == '#' || cur == '') {
|
| - tabs.selectedTab = $('info-view');
|
| - } else {
|
| - var tab = $(window.location.hash.substr(1));
|
| - if (tab)
|
| - tabs.selectedTab = tab;
|
| - }
|
| - };
|
| - window.onhashchange();
|
| + cr.ui.decorate($('info-view'), gpu.InfoView);
|
| }
|
|
|
| document.addEventListener('DOMContentLoaded', onLoad);
|
|
|