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

Side by Side Diff: experimental/SkV8Example/js/gears.js

Issue 677133002: Move .js files to their own directory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 | « experimental/SkV8Example/gears.js ('k') | experimental/SkV8Example/js/path.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var IS_SKV8 = typeof document == "undefined"; 1 var IS_SKV8 = typeof document == "undefined";
2 var HAS_PATH = typeof Path2D != "undefined"; 2 var HAS_PATH = typeof Path2D != "undefined";
3 var HAS_DISPLAY_LIST = typeof DisplayList != "undefined"; 3 var HAS_DISPLAY_LIST = typeof DisplayList != "undefined";
4 4
5 var NumTeeth = 24; 5 var NumTeeth = 24;
6 var NumGears = 60; 6 var NumGears = 60;
7 var DeltaTheta = Math.PI/90; 7 var DeltaTheta = Math.PI/90;
8 var FaceColors = ["#000099", "#006600", "#990000", "#EEEE00"]; 8 var FaceColors = ["#000099", "#006600", "#990000", "#EEEE00"];
9 var SideColors = ["#0000FF", "#009900", "#FF0000", "#CCCC00"]; 9 var SideColors = ["#0000FF", "#009900", "#FF0000", "#CCCC00"];
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 var ctx = canvas.getContext("2d"); 174 var ctx = canvas.getContext("2d");
175 function drawCallback() { 175 function drawCallback() {
176 onDraw(ctx); 176 onDraw(ctx);
177 setTimeout(drawCallback, 1); 177 setTimeout(drawCallback, 1);
178 } 178 }
179 setTimeout(drawCallback, 1); 179 setTimeout(drawCallback, 1);
180 } 180 }
181 } 181 }
182 182
183 console.log("HAS_PATH: " + HAS_PATH); 183 console.log("HAS_PATH: " + HAS_PATH);
OLDNEW
« no previous file with comments | « experimental/SkV8Example/gears.js ('k') | experimental/SkV8Example/js/path.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698