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

Side by Side Diff: sky/tests/resources/run-after-display.sky

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « sky/tests/resources/dump-as-text.sky ('k') | sky/tests/styles/border-parsing.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <script> 1 <script>
2 module.exports = function(callback) { 2 import "dart:async";
3 window.requestAnimationFrame(function() { 3 import "dart:sky";
4 // At this point, only the animate has happened, but no compositing 4
5 // or layout. Use a timeout for the callback so that notifyDone 5 void runAfterDisplay(void callback()) {
6 // can be called inside of it. 6 window.requestAnimationFrame((_) {
7 // FIXME: we need a better way of waiting for chromium events to happen 7 // At this point, only the animate has happened, but no compositing
8 window.setTimeout(callback); 8 // or layout. Use a timeout for the callback so that notifyDone
9 }); 9 // can be called inside of it.
10 }; 10 // FIXME: we need a better way of waiting for chromium events to happen
11 new Timer(Duration.ZERO, callback);
12 });
13 }
11 </script> 14 </script>
OLDNEW
« no previous file with comments | « sky/tests/resources/dump-as-text.sky ('k') | sky/tests/styles/border-parsing.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698