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

Unified Diff: PerformanceTests/Blending/resources/framerate.js

Issue 643693006: Add performance tests for accelerated elements with CSS Blending. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 | « PerformanceTests/Blending/mix-blend-mode-propagating-isolation.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
-};
-
-})();
« no previous file with comments | « PerformanceTests/Blending/mix-blend-mode-propagating-isolation.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698