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

Unified Diff: tracing/tracing/ui/tracks/model_track.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 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
« no previous file with comments | « tracing/tracing/ui/tracks/letter_dot_track.html ('k') | tracing/tracing/ui/tracks/model_track_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/tracks/model_track.html
diff --git a/tracing/tracing/ui/tracks/model_track.html b/tracing/tracing/ui/tracks/model_track.html
index d76fb8e7f1ba4a2bdd3afde223d37a7882cec752..6dc7227715b331a766fe5350c8993010257bb9e4 100644
--- a/tracing/tracing/ui/tracks/model_track.html
+++ b/tracing/tracing/ui/tracks/model_track.html
@@ -51,7 +51,7 @@ tr.exportTo('tr.ui.tracks', function() {
* @param {number} maxTime the upper bound of time to stop striping at.
* of |times|.
*
- * @returns {!Array.<tr.b.Range>} An array of ranges where each element
+ * @returns {!Array.<tr.b.math.Range>} An array of ranges where each element
* represents the time range that a stripe covers. Each range is a subset
* of the interval [minTime, maxTime].
*/
@@ -60,7 +60,7 @@ tr.exportTo('tr.ui.tracks', function() {
// Find the lowest and highest index within the viewport.
var lowIndex =
- tr.b.findLowIndexInSortedArray(times, tr.b.identity, minTime);
+ tr.b.math.findLowIndexInSortedArray(times, tr.b.identity, minTime);
var highIndex = lowIndex - 1;
while (times[highIndex + 1] <= maxTime) {
highIndex++;
@@ -71,7 +71,7 @@ tr.exportTo('tr.ui.tracks', function() {
for (var i = lowIndex - (lowIndex % 2); i <= highIndex; i += 2) {
var left = i < lowIndex ? minTime : times[i];
var right = i + 1 > highIndex ? maxTime : times[i + 1];
- stripes.push(tr.b.Range.fromExplicitRange(left, right));
+ stripes.push(tr.b.math.Range.fromExplicitRange(left, right));
}
return stripes;
@@ -461,7 +461,7 @@ tr.exportTo('tr.ui.tracks', function() {
var stripeDensity =
stripeRange ? stripes.length / (dt.scaleX * stripeRange) : 0;
var clampedStripeDensity =
- tr.b.clamp(stripeDensity, ModelTrack.VSYNC_DENSITY_OPAQUE,
+ tr.b.math.clamp(stripeDensity, ModelTrack.VSYNC_DENSITY_OPAQUE,
ModelTrack.VSYNC_DENSITY_TRANSPARENT);
var opacity =
(ModelTrack.VSYNC_DENSITY_TRANSPARENT - clampedStripeDensity) /
@@ -499,7 +499,7 @@ tr.exportTo('tr.ui.tracks', function() {
selection.push(instantEvent);
}
var instantEventWidth = 3 * viewPixWidthWorld;
- tr.b.iterateOverIntersectingIntervals(this.model_.instantEvents,
+ tr.b.math.iterateOverIntersectingIntervals(this.model_.instantEvents,
function(x) { return x.start; },
function(x) { return x.duration + instantEventWidth; },
loWX, hiWX,
« no previous file with comments | « tracing/tracing/ui/tracks/letter_dot_track.html ('k') | tracing/tracing/ui/tracks/model_track_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698