Index: PerformanceTests/Blending/resources/framerate.js |
diff --git a/PerformanceTests/Blending/resources/framerate.js b/PerformanceTests/Blending/resources/framerate.js |
deleted file mode 100644 |
index 6871eba7df0ff9d1123ef0e928cd03c3c370d843..0000000000000000000000000000000000000000 |
--- a/PerformanceTests/Blending/resources/framerate.js |
+++ /dev/null |
@@ -1,38 +0,0 @@ |
-(function(){ |
- |
-var framesPerTimerReading = 10; |
-var frameCount = 0; |
-var startTime; |
-var trackingFrameRate = false; |
-var currentTest; |
- |
-function trackFrameRate(currTime) |
-{ |
- if (++frameCount == framesPerTimerReading) { |
- frameCount = 0; |
- PerfTestRunner.measureValueAsync(1000 * framesPerTimerReading / (currTime - startTime)); |
- startTime = currTime; |
- } |
- |
- if (currentTest && currentTest.run) |
- currentTest.run(); |
- |
- if (trackingFrameRate) |
- requestAnimationFrame(trackFrameRate); |
-} |
- |
-window.startTrackingFrameRate = function(test) { |
- if (trackingFrameRate) |
- return; |
- trackingFrameRate = true; |
- currentTest = test; |
- startTime = performance.now(); |
- trackFrameRate(); |
-}; |
- |
-window.stopTrackingFrameRate = function() { |
- trackingFrameRate = false; |
- currentTest = undefined; |
-}; |
- |
-})(); |