skia2/tools/lua/scrape.lua
reed@google.com dff7e11c20 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
2013-05-15 19:34:20 +00:00

16 lines
251 B
Lua

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