| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 <include src="gpu_internals/overlay.js"/> | 5 <include src="gpu_internals/overlay.js"/> |
| 6 <include src="gpu_internals/browser_bridge.js"/> | 6 <include src="gpu_internals/browser_bridge.js"/> |
| 7 <include src="gpu_internals/tracing_controller.js"/> | 7 <include src="gpu_internals/tracing_controller.js"/> |
| 8 <include src="gpu_internals/info_view.js"/> | 8 <include src="gpu_internals/info_view.js"/> |
| 9 <include src="gpu_internals/timeline_model.js"/> | 9 <include src="gpu_internals/timeline_model.js"/> |
| 10 <include src="gpu_internals/sorted_array_utils.js"/> | 10 <include src="gpu_internals/sorted_array_utils.js"/> |
| 11 <include src="gpu_internals/timeline.js"/> | 11 <include src="gpu_internals/timeline.js"/> |
| 12 <include src="gpu_internals/timeline_track.js"/> | 12 <include src="gpu_internals/timeline_track.js"/> |
| 13 <include src="gpu_internals/fast_rect_renderer.js"/> | 13 <include src="gpu_internals/fast_rect_renderer.js"/> |
| 14 <include src="gpu_internals/profiling_view.js"/> | 14 <include src="gpu_internals/profiling_view.js"/> |
| 15 <include src="gpu_internals/timeline_view.js"/> | 15 <include src="gpu_internals/timeline_view.js"/> |
| 16 | 16 |
| 17 var browserBridge; | 17 var browserBridge; |
| 18 var tracingController; | 18 var tracingController; |
| 19 var timelineView; // made global for debugging purposes only | |
| 20 var profilingView; // made global for debugging purposes only | 19 var profilingView; // made global for debugging purposes only |
| 21 | 20 |
| 22 /** | 21 /** |
| 23 * Main entry point. called once the page has loaded. | 22 * Main entry point. called once the page has loaded. |
| 24 */ | 23 */ |
| 25 function onLoad() { | 24 function onLoad() { |
| 26 browserBridge = new gpu.BrowserBridge(); | 25 browserBridge = new gpu.BrowserBridge(); |
| 27 tracingController = new gpu.TracingController(); | 26 tracingController = new gpu.TracingController(); |
| 28 | 27 |
| 29 // Create the views. | 28 // Create the views. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 49 } else { | 48 } else { |
| 50 var tab = $(window.location.hash.substr(1)); | 49 var tab = $(window.location.hash.substr(1)); |
| 51 if (tab) | 50 if (tab) |
| 52 tabs.selectedTab = tab; | 51 tabs.selectedTab = tab; |
| 53 } | 52 } |
| 54 }; | 53 }; |
| 55 window.onhashchange(); | 54 window.onhashchange(); |
| 56 } | 55 } |
| 57 | 56 |
| 58 document.addEventListener('DOMContentLoaded', onLoad); | 57 document.addEventListener('DOMContentLoaded', onLoad); |
| OLD | NEW |