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

Unified Diff: tools/lua/scrape.lua

Issue 14907017: add SkLuaCanvas (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 7 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 | « tools/lua/lua_pictures.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lua/scrape.lua
diff --git a/tools/lua/scrape.lua b/tools/lua/scrape.lua
new file mode 100644
index 0000000000000000000000000000000000000000..1d9cda91fe5954800442d301e148c9302d091357
--- /dev/null
+++ b/tools/lua/scrape.lua
@@ -0,0 +1,15 @@
+canvas = {}
+total = 0
+function accumulate(verb)
+ total = total + 1
+ n = canvas[verb] or 0
+ n = n + 1
+ canvas[verb] = n
+end
+function summarize()
+ io.write('total='..total..' ')
+ for k, v in next, canvas do
+ io.write(k..'='..v..' ')
+ end
+end
+
« no previous file with comments | « tools/lua/lua_pictures.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698