add SkLuaCanvas
add lua 5.2 to third_party
BUG=
R=bungeman@google.com
Review URL: https://codereview.chromium.org/14907017
git-svn-id: http://skia.googlecode.com/svn/trunk@9149 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tools/lua/scrape.lua b/tools/lua/scrape.lua
new file mode 100644
index 0000000..1d9cda9
--- /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
+