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

Unified Diff: tracing/tracing/ui/tracks/object_instance_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
Index: tracing/tracing/ui/tracks/object_instance_track.html
diff --git a/tracing/tracing/ui/tracks/object_instance_track.html b/tracing/tracing/ui/tracks/object_instance_track.html
index c53a77b9c0006fc86512a76d1b0c38f2677d800c..df37156414a7ba068a879085cfddf17f230d09e8 100644
--- a/tracing/tracing/ui/tracks/object_instance_track.html
+++ b/tracing/tracing/ui/tracks/object_instance_track.html
@@ -8,7 +8,7 @@ found in the LICENSE file.
<link rel="stylesheet" href="/tracing/ui/tracks/object_instance_track.css">
<link rel="import" href="/tracing/base/extension_registry.html">
-<link rel="import" href="/tracing/base/sorted_array_utils.html">
+<link rel="import" href="/tracing/base/math/sorted_array_utils.html">
<link rel="import" href="/tracing/model/event.html">
<link rel="import" href="/tracing/ui/base/event_presenter.html">
<link rel="import" href="/tracing/ui/base/heading.html">
@@ -119,7 +119,7 @@ tr.exportTo('tr.ui.tracks', function() {
// Instances
var objectInstances = this.objectInstances_;
- var loI = tr.b.findLowIndexInSortedArray(
+ var loI = tr.b.math.findLowIndexInSortedArray(
objectInstances,
function(instance) {
return instance.deletionTs;
@@ -141,7 +141,7 @@ tr.exportTo('tr.ui.tracks', function() {
// Snapshots. Has to run in worldspace because ctx.arc gets transformed.
var objectSnapshots = this.objectSnapshots_;
- loI = tr.b.findLowIndexInSortedArray(
+ loI = tr.b.math.findLowIndexInSortedArray(
objectSnapshots,
function(snapshot) {
return snapshot.ts + snapshotRadiusWorld;
@@ -218,7 +218,7 @@ tr.exportTo('tr.ui.tracks', function() {
}
var snapshotRadiusView = this.snapshotRadiusView;
var snapshotRadiusWorld = viewPixWidthWorld * snapshotRadiusView;
- tr.b.iterateOverIntersectingIntervals(
+ tr.b.math.iterateOverIntersectingIntervals(
this.objectSnapshots_,
function(x) { return x.ts - snapshotRadiusWorld; },
function(x) { return 2 * snapshotRadiusWorld; },
@@ -228,7 +228,7 @@ tr.exportTo('tr.ui.tracks', function() {
return;
// Try picking instances.
- tr.b.iterateOverIntersectingIntervals(
+ tr.b.math.iterateOverIntersectingIntervals(
this.objectInstances_,
function(x) { return x.creationTs; },
function(x) { return x.deletionTs - x.creationTs; },
@@ -269,7 +269,7 @@ tr.exportTo('tr.ui.tracks', function() {
addClosestEventToSelection: function(worldX, worldMaxDist, loY, hiY,
selection) {
- var snapshot = tr.b.findClosestElementInSortedArray(
+ var snapshot = tr.b.math.findClosestElementInSortedArray(
this.objectSnapshots_,
function(x) { return x.ts; },
worldX,
« no previous file with comments | « tracing/tracing/ui/tracks/object_instance_group_track.html ('k') | tracing/tracing/ui/tracks/process_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698