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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/resources/raf-throttling-frame.html

Issue 2468863002: scheduler: Re-enable timer throttling for hidden frames (Closed)
Patch Set: Rebased Created 4 years 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
Index: third_party/WebKit/LayoutTests/fast/dom/resources/raf-throttling-frame.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/resources/raf-throttling-frame.html b/third_party/WebKit/LayoutTests/fast/dom/resources/raf-throttling-frame.html
new file mode 100644
index 0000000000000000000000000000000000000000..fa750dabbe49eb6db1b55bd1dc1210f7e252528e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/resources/raf-throttling-frame.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+
+<!-- Counts the number of animation frames that have been served to this frame. -->
+<script>
+let rafCount = 0;
+function raf() {
+ rafCount++;
+ requestAnimationFrame(raf);
+};
+requestAnimationFrame(raf);
+
+addEventListener('message', (e) => {
+ e.source.postMessage(rafCount, e.origin);
+});
+</script>
+

Powered by Google App Engine
This is Rietveld 408576698