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

Unified Diff: experimental/SkV8Example/sample.js

Issue 121303004: Fleshed out a lot of the Path interfac (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: unused imports Created 6 years, 11 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/path.js ('k') | experimental/SkV8Example/speed.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}();
« no previous file with comments | « experimental/SkV8Example/path.js ('k') | experimental/SkV8Example/speed.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698