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 /** | 5 /** |
6 * @fileoverview Interactive visualizaiton of TimelineModel objects | 6 * @fileoverview Interactive visualizaiton of TimelineModel objects |
7 * based loosely on gantt charts. Each thread in the TimelineModel is given a | 7 * based loosely on gantt charts. Each thread in the TimelineModel is given a |
8 * set of TimelineTracks, one per subrow in the thread. The Timeline class | 8 * set of TimelineTracks, one per subrow in the thread. The Timeline class |
9 * acts as a controller, creating the individual tracks, while TimelineTracks | 9 * acts as a controller, creating the individual tracks, while TimelineTracks |
10 * do actual drawing. | 10 * do actual drawing. |
11 * | 11 * |
12 * Visually, the Timeline produces (prettier) visualizations like the following: | 12 * Visually, the Timeline produces (prettier) visualizations like the following: |
13 * Thread1: AAAAAAAAAA AAAAA | 13 * Thread1: AAAAAAAAAA AAAAA |
14 * BBBB BB | 14 * BBBB BB |
15 * Thread2: CCCCCC CCCCC | 15 * Thread2: CCCCCC CCCCC |
16 * | 16 * |
17 */ | 17 */ |
18 cr.define('gpu', function() { | 18 cr.define('tracing', function() { |
19 | 19 |
20 /** | 20 /** |
21 * The TimelineViewport manages the transform used for navigating | 21 * The TimelineViewport manages the transform used for navigating |
22 * within the timeline. It is a simple transform: | 22 * within the timeline. It is a simple transform: |
23 * x' = (x+pan) * scale | 23 * x' = (x+pan) * scale |
24 * | 24 * |
25 * The timeline code tries to avoid directly accessing this transform, | 25 * The timeline code tries to avoid directly accessing this transform, |
26 * instead using this class to do conversion between world and view space, | 26 * instead using this class to do conversion between world and view space, |
27 * as well as the math for centering the viewport in various interesting | 27 * as well as the math for centering the viewport in various interesting |
28 * ways. | 28 * ways. |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 /** | 578 /** |
579 * The TimelineModel being viewed by the timeline | 579 * The TimelineModel being viewed by the timeline |
580 * @type {TimelineModel} | 580 * @type {TimelineModel} |
581 */ | 581 */ |
582 cr.defineProperty(Timeline, 'model', cr.PropertyKind.JS); | 582 cr.defineProperty(Timeline, 'model', cr.PropertyKind.JS); |
583 | 583 |
584 return { | 584 return { |
585 Timeline: Timeline | 585 Timeline: Timeline |
586 }; | 586 }; |
587 }); | 587 }); |
OLD | NEW |