Index: experimental/SkV8Example/sample.js |
diff --git a/experimental/SkV8Example/sample.js b/experimental/SkV8Example/sample.js |
index 841dd5daa7848706e03e8265c59bea61b982597d..81c717c7e822f9fecb1091dc03b6e0b2000cf5cf 100644 |
--- a/experimental/SkV8Example/sample.js |
+++ b/experimental/SkV8Example/sample.js |
@@ -3,10 +3,10 @@ |
*/ |
var onDraw = function(){ |
var tick = 0; |
- function f(canvas) { |
+ function f(context) { |
tick += 0.1; |
- canvas.fillStyle = '#0000ff'; |
- canvas.fillRect(100, 100, Math.sin(tick)*100, Math.cos(tick)*100); |
+ context.fillStyle = '#0000ff'; |
+ context.fillRect(100, 100, Math.sin(tick)*100, Math.cos(tick)*100); |
}; |
return f; |
}(); |