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

Side by Side Diff: experimental/docs/backend.js

Issue 1342523002: json based animation toy (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: wip whats next? Created 5 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
« no previous file with comments | « experimental/docs/animationCommon.js ('k') | experimental/docs/canvasBackend.js » ('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 displayBackend(displayEngine, displayList) {
2 switch (displayEngine) {
3 case 'all':
4 displayCanvas(displayList);
5 displaySvg(displayList);
6 break;
7 case 'Canvas':
8 displayCanvas(displayList);
9 break;
10 case 'SVG':
11 displaySvg(displayList);
12 break;
13 default:
14 assert(0);
15 }
16 }
17
18 function keyframeBackendInit(displayEngine, displayList, first) {
19 switch (displayEngine) {
20 case 'all':
21 case 'Canvas':
22 keyframeCanvasInit(displayList, first);
23 break;
24 case 'SVG':
25 break;
26 default:
27 assert(0);
28 }
29 }
30
31 function setupBackend(displayEngine) {
32 switch (displayEngine) {
33 case 'all':
34 case 'Canvas':
35 setupCanvas();
36 setupSvg();
37 break;
38 case 'SVG':
39 setupSvg();
40 break;
41 default:
42 assert(0);
43 }
44 }
OLDNEW
« no previous file with comments | « experimental/docs/animationCommon.js ('k') | experimental/docs/canvasBackend.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698