Renamed JsCanvas to JsContext and moved into it's own file.
Fleshed out a lot of the Path interface.
BUG=
R=robertphillips@google.com, tfarina@chromium.org, reed@google.com
Author: jcgregorio@google.com
Review URL: https://codereview.chromium.org/121303004
git-svn-id: http://skia.googlecode.com/svn/trunk@12913 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/SkV8Example/speed.js b/experimental/SkV8Example/speed.js
new file mode 100644
index 0000000..5b0f001
--- /dev/null
+++ b/experimental/SkV8Example/speed.js
@@ -0,0 +1,23 @@
+/**
+ * @fileoverview Sample onDraw script for use with SkV8Example.
+ */
+var onDraw = function(){
+ var tick = 0;
+ function f(canvas) {
+ tick += 0.1;
+ canvas.fillStyle = '#0000ff';
+ canvas.fillRect(100, 100, Math.sin(tick)*100, Math.cos(tick)*100);
+ inval();
+ };
+
+ function onTimeout() {
+ print(tick*10, " FPS");
+ setTimeout(onTimeout, 1000);
+ tick=0;
+ }
+
+ setTimeout(onTimeout, 1000);
+
+ return f;
+}();
+