create and modify matrices in lua

BUG=skia:

Review URL: https://codereview.chromium.org/651823004
3 files changed