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

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: rebase Created 9 years, 4 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 34db08db6aaa4584e0d05aa151f0876806b58980..106cc2fdda2d2c1e6b2e1f2227f13db11a626db0 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},
@@ -284,8 +284,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) {
@@ -367,7 +367,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);
@@ -402,7 +402,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,
« no previous file with comments | « chrome/browser/resources/tracing/timeline_model.js ('k') | chrome/browser/resources/tracing/timeline_view.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698