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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <!-- Counts the number of animation frames that have been served to this frame. -->
4 <script>
5 let rafCount = 0;
6 function raf() {
7 rafCount++;
8 requestAnimationFrame(raf);
9 };
10 requestAnimationFrame(raf);
11
12 addEventListener('message', (e) => {
13 e.source.postMessage(rafCount, e.origin);
14 });
15 </script>
16
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698