Fix a missing refactoring.
authorjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Feb 2016 08:11:35 +0000 (08:11 +0000)
committerjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Feb 2016 08:11:35 +0000 (08:11 +0000)
* Animometer/tests/master/resources/multiply.js:
(animate): Move to Utilities.lerp.
(_lerp): Deleted.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196416 268f45cc-cd09-0410-ab3c-d52691b4dbfc

PerformanceTests/Animometer/tests/master/resources/multiply.js
PerformanceTests/ChangeLog

index bae72ce..ceef273 100644 (file)
@@ -87,8 +87,8 @@ var MultiplyStage = Utilities.createSubclass(Stage,
 
         var progress = this._benchmark.timestamp % 10000 / 10000;
         var bounceProgress = Math.sin(2 * Math.abs( 0.5 - progress));
-        var l = this._lerp(bounceProgress, 20, 50);
-        var hslPrefix = "hsla(" + this._lerp(progress, 0, 360) + ",100%,";
+        var l = Utilities.lerp(bounceProgress, 20, 50);
+        var hslPrefix = "hsla(" + Utilities.lerp(progress, 0, 360) + ",100%,";
 
         for (var i = 0; i < this._offsetIndex; ++i) {
             var tile = this.tiles[i];
@@ -104,11 +104,6 @@ var MultiplyStage = Utilities.createSubclass(Stage,
             this.tiles[i].active = false;
             this.tiles[i].element.style.backgroundColor = "";
         }
-    },
-
-    _lerp: function(value, min, max)
-    {
-        return min + ( max - min ) * value;
     }
 });
 
index 1d5e383..1329959 100644 (file)
@@ -1,3 +1,11 @@
+2016-02-11  Jon Lee  <jonlee@apple.com>
+
+        Fix a missing refactoring.
+
+        * Animometer/tests/master/resources/multiply.js:
+        (animate): Move to Utilities.lerp.
+        (_lerp): Deleted.
+
 2016-02-10  Jon Lee  <jonlee@apple.com>
 
         Add new benchmark tests.