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

Unified Diff: tracing/tracing/base/math/math.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/base/math/bbox2_test.html ('k') | tracing/tracing/base/math/math_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/math/math.html
diff --git a/tracing/tracing/base/math.html b/tracing/tracing/base/math/math.html
similarity index 98%
rename from tracing/tracing/base/math.html
rename to tracing/tracing/base/math/math.html
index 0a71cb1cbc57fe33ddb5462ff4878a2462dd7239..e0658a4160bfecadbc1e49334f3c48f43c4a55a7 100644
--- a/tracing/tracing/base/math.html
+++ b/tracing/tracing/base/math/math.html
@@ -30,7 +30,7 @@ found in the LICENSE file.
<script>
'use strict';
-tr.exportTo('tr.b', function() {
+tr.exportTo('tr.b.math', function() {
var PREFERRED_NUMBER_SERIES_MULTIPLIERS = [1, 2, 5, 10];
/* Returns true when x and y are within delta of each other. */
@@ -215,7 +215,7 @@ tr.exportTo('tr.b', function() {
var absMin = Math.abs(min);
// The conservative guess is the largest power of 10 less than
// or equal to |absMin|.
- var conservativeGuess = tr.b.lesserPower(absMin);
+ var conservativeGuess = tr.b.math.lesserPower(absMin);
var minPreferedNumber = undefined;
for (var multiplier of PREFERRED_NUMBER_SERIES_MULTIPLIERS) {
var tightenedGuess = conservativeGuess * multiplier;
« no previous file with comments | « tracing/tracing/base/math/bbox2_test.html ('k') | tracing/tracing/base/math/math_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698