Index: experimental/SkV8Example/sample.js |
diff --git a/experimental/SkV8Example/sample.js b/experimental/SkV8Example/sample.js |
index 3a95e551069c49bb230179098daf7a91af909c3d..b5160620448e2c5a7bff896ef1fb58a9be66bc16 100644 |
--- a/experimental/SkV8Example/sample.js |
+++ b/experimental/SkV8Example/sample.js |
@@ -4,10 +4,17 @@ |
var onDraw = function(){ |
var tick = 0; |
function f(canvas) { |
- tick += 0.01; |
+ tick += 0.1; |
canvas.fillStyle = '#0000ff'; |
canvas.fillRect(100, 100, Math.sin(tick)*100, Math.cos(tick)*100); |
- canvas.inval(); |
}; |
return f; |
}(); |
+ |
+function onTimeout() { |
+ inval(); |
+ print("Got a timeout!"); |
+ setTimeout(onTimeout, 33); |
+} |
+ |
+setTimeout(onTimeout, 33); |