Chromium Code Reviews| Index: chrome/browser/resources/gpu_internals/timeline_track.js |
| diff --git a/chrome/browser/resources/gpu_internals/timeline_track.js b/chrome/browser/resources/gpu_internals/timeline_track.js |
| index 493be171be1faba51d569aa5eff4639a2169d8cd..70f6d9135d869f9c84e96c7acd278364bfa4ddd9 100644 |
| --- a/chrome/browser/resources/gpu_internals/timeline_track.js |
| +++ b/chrome/browser/resources/gpu_internals/timeline_track.js |
| @@ -132,8 +132,11 @@ cr.define('gpu', function() { |
| addTrack(this, this.thread_.subRows[srI]); |
| } |
| if (this.tracks_.length > 0) { |
| + var tname = this.thread_.name || this.thread_.tid; |
| this.tracks_[0].heading = this.thread_.parent.pid + ': ' + |
| - this.thread_.tid + ': '; |
| + tname + ':'; |
| + this.tracks_[0].title = 'pid: ' + this.thread_.parent.pid + |
| + ', tid: ' + this.thread_.tid; |
| } |
| } |
| }, |
| @@ -194,9 +197,9 @@ cr.define('gpu', function() { |
| this.className = 'timeline-slice-track'; |
| this.slices_ = null; |
| - this.titleDiv_ = document.createElement('div'); |
| - this.titleDiv_.className = 'timeline-slice-track-title'; |
| - this.appendChild(this.titleDiv_); |
| + this.headingDiv_ = document.createElement('div'); |
| + this.headingDiv_.className = 'timeline-slice-track-title'; |
| + this.appendChild(this.headingDiv_); |
| this.canvasContainer_ = document.createElement('div'); |
| this.canvasContainer_.className = 'timeline-slice-track-canvas-container'; |
| @@ -209,7 +212,11 @@ cr.define('gpu', function() { |
| }, |
| set heading(text) { |
| - this.titleDiv_.textContent = text; |
| + this.headingDiv_.textContent = text; |
| + }, |
| + |
| + set title(text) { |
| + this.headingDiv_.textContent = text; |
|
nduca
2011/07/26 09:46:33
Tooltips ftw!
|
| }, |
| set slices(slices) { |
| @@ -309,7 +316,7 @@ cr.define('gpu', function() { |
| if (slice.duration > quickDiscardThresshold) { |
| var title = slice.title; |
| if (slice.didNotFinish) { |
| - title += " (Did Not Finish)"; |
| + title += ' (Did Not Finish)'; |
| } |
| var labelWidth = quickMeasureText(ctx, title) + 2; |
| var labelWidthWorld = pixWidth * labelWidth; |