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

Side by Side Diff: LayoutTests/fast/workers/resources/teleport.js

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/workers/resources/snap-points.js ('k') | LayoutTests/fast/workers/scroll.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 (function(scope) {
2 'use strict';
3
4 var token = null;
5
6 // An extremely cheesy animation.
7 function tick(context) {
8 var seconds = context.timestamp / 1000.0;
9 var matrix = context.getMatrix(token);
10 matrix.m14 = 200.0 + 100 * Math.sin(seconds);
11 context.setMatrix(token, matrix);
12 scope.teleportMessage(context, tick);
13 }
14
15 scope.onmessage = function(e) {
16 token = e.data;
17 var context = new TeleportContext([token]);
18 scope.teleportMessage(context, tick);
19 };
20
21 })(self);
OLDNEW
« no previous file with comments | « LayoutTests/fast/workers/resources/snap-points.js ('k') | LayoutTests/fast/workers/scroll.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698