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

Unified Diff: experimental/SkV8Example/gears.js

Issue 177963005: Rename Path to Path2D (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/SkV8Example/SkV8Example.cpp ('k') | experimental/SkV8Example/path.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/SkV8Example/gears.js
diff --git a/experimental/SkV8Example/gears.js b/experimental/SkV8Example/gears.js
index 82b4b1e60288c2fa31d35694b6da437d0f52a162..1c5a272e4f40a73725a20b838ff5de6cfabf003f 100644
--- a/experimental/SkV8Example/gears.js
+++ b/experimental/SkV8Example/gears.js
@@ -1,5 +1,5 @@
var IS_SKV8 = typeof document == "undefined";
-var HAS_PATH = typeof Path != "undefined";
+var HAS_PATH = typeof Path2D != "undefined";
var NumTeeth = 24;
var NumGears = 60;
@@ -23,7 +23,7 @@ function makeGear(pathLike, r) {
function gearPath(r) {
if (HAS_PATH) {
- p = new Path();
+ p = new Path2D();
makeGear(p, r)
p.closePath();
return p;
« no previous file with comments | « experimental/SkV8Example/SkV8Example.cpp ('k') | experimental/SkV8Example/path.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698