Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: chrome/browser/resources/tracing/timeline_track.js

Issue 7555005: Moving the contents of chrome://gpu Profiling to chrome://tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove tabs Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/tracing/timeline_track.js
diff --git a/chrome/browser/resources/gpu_internals/timeline_track.js b/chrome/browser/resources/tracing/timeline_track.js
similarity index 97%
rename from chrome/browser/resources/gpu_internals/timeline_track.js
rename to chrome/browser/resources/tracing/timeline_track.js
index 464e0ebc89cfc3d1b08ed172c190f15fcc01ecda..002a191f836c5fccf75b8a377f0cff3eb5f60a63 100644
--- a/chrome/browser/resources/gpu_internals/timeline_track.js
+++ b/chrome/browser/resources/tracing/timeline_track.js
@@ -8,7 +8,7 @@
* using a child canvas element. Uses a FastRectRenderer to draw only
* the visible slices.
*/
-cr.define('gpu', function() {
+cr.define('tracing', function() {
const palletteBase = [
{r: 138, g: 113, b: 152},
@@ -276,8 +276,8 @@ cr.define('gpu', function() {
vp.applyTransformToCanavs(ctx);
// tracks
- var tr = new gpu.FastRectRenderer(ctx, viewLWorld, 2 * pixWidth,
- 2 * pixWidth, viewRWorld, pallette);
+ var tr = new tracing.FastRectRenderer(ctx, viewLWorld, 2 * pixWidth,
+ 2 * pixWidth, viewRWorld, pallette);
tr.setYandH(0, canvasH);
var slices = this.slices_;
for (var i = 0; i < slices.length; ++i) {
@@ -359,7 +359,7 @@ cr.define('gpu', function() {
var clientRect = this.getBoundingClientRect();
if (wY < clientRect.top || wY >= clientRect.bottom)
return false;
- var x = gpu.findLowIndexInSortedIntervals(this.slices_,
+ var x = tracing.findLowIndexInSortedIntervals(this.slices_,
function(x) { return x.start; },
function(x) { return x.duration; },
wX);
@@ -394,7 +394,7 @@ cr.define('gpu', function() {
function onPickHit(slice) {
onHitCallback('slice', that, slice);
}
- gpu.iterateOverIntersectingIntervals(this.slices_,
+ tracing.iterateOverIntersectingIntervals(this.slices_,
function(x) { return x.start; },
function(x) { return x.duration; },
loWX, hiWX,

Powered by Google App Engine
This is Rietveld 408576698