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

Unified Diff: tracing/tracing/model/helpers/android_app.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/model/frame.html ('k') | tracing/tracing/model/helpers/android_model_helper.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/helpers/android_app.html
diff --git a/tracing/tracing/model/helpers/android_app.html b/tracing/tracing/model/helpers/android_app.html
index c2d4509f37e4f749352afc96e10a9e148e981a4a..06e4b881ec2d6f694f5989408371ba2c104672d7 100644
--- a/tracing/tracing/model/helpers/android_app.html
+++ b/tracing/tracing/model/helpers/android_app.html
@@ -4,9 +4,9 @@ Copyright (c) 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
-<link rel="import" href="/tracing/base/range_utils.html">
-<link rel="import" href="/tracing/base/sorted_array_utils.html">
-<link rel="import" href="/tracing/base/statistics.html">
+<link rel="import" href="/tracing/base/math/range_utils.html">
+<link rel="import" href="/tracing/base/math/sorted_array_utils.html">
+<link rel="import" href="/tracing/base/math/statistics.html">
<link rel="import" href="/tracing/model/frame.html">
<script>
@@ -18,7 +18,7 @@ found in the LICENSE file.
*/
tr.exportTo('tr.model.helpers', function() {
var Frame = tr.model.Frame;
- var Statistics = tr.b.Statistics;
+ var Statistics = tr.b.math.Statistics;
var UI_DRAW_TYPE = {
NONE: 'none',
@@ -69,7 +69,7 @@ tr.exportTo('tr.model.helpers', function() {
// of all top level renderthread slices, find the one that has a 'sync'
// within the uiDrawSlice
var overlappingDrawFrame;
- var slices = tr.b.iterateOverIntersectingIntervals(
+ var slices = tr.b.math.iterateOverIntersectingIntervals(
renderThread.sliceGroup.slices,
function(range) { return range.start; },
function(range) { return range.end; },
@@ -114,8 +114,8 @@ tr.exportTo('tr.model.helpers', function() {
preFrameEvents.push(slice);
});
- return tr.b.mergeRanges(
- tr.b.convertEventsToRanges(preFrameEvents),
+ return tr.b.math.mergeRanges(
+ tr.b.math.convertEventsToRanges(preFrameEvents),
3,
function(events) {
return {
@@ -126,7 +126,7 @@ tr.exportTo('tr.model.helpers', function() {
}
function getFrameStartTime(traversalStart, preTraversalWorkRanges) {
- var preTraversalWorkRange = tr.b.findClosestIntervalInSortedIntervals(
+ var preTraversalWorkRange = tr.b.math.findClosestIntervalInSortedIntervals(
preTraversalWorkRanges,
function(range) { return range.start; },
function(range) { return range.end; },
« no previous file with comments | « tracing/tracing/model/frame.html ('k') | tracing/tracing/model/helpers/android_model_helper.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698