Experimental Go bindings for Skia
authorStephan Altmueller <stephana@google.com>
Tue, 9 May 2017 19:56:06 +0000 (15:56 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 10 May 2017 15:32:19 +0000 (15:32 +0000)
commitefa48d599de15d960d7335a4a93a6bbeb97d3c41
tree6b95700087faeaaec0ea030d0fa5e17b515cebc1
parent05fd8cf08970763832d6690ca1823168dd6f071f
Experimental Go bindings for Skia

This CL implements Go bindings for a subset of the functions in the C API.
It implements a Go version of the C demo program in
experimental/c-api-example/skia-c-example.c and the output is identical.
(Checked by hand).

The main purpose is to establish a pattern of calling the Skia C API that
is memory safe and provides a idiomatic Go interface to Skia.

Follow up CLs will cover the entire C API, add documentation and establish
a pattern to distribute the bindings more easily.

BUG=
Change-Id: I96ff7c3715164c533202ce300ab0312b1b07f884

Change-Id: I96ff7c3715164c533202ce300ab0312b1b07f884
Reviewed-on: https://skia-review.googlesource.com/10032
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Stephan Altmueller <stephana@google.com>
experimental/go-demo/main.go [new file with mode: 0644]
experimental/go-skia/ctypes.go [new file with mode: 0644]
experimental/go-skia/skia.go
experimental/go-skia/types.go [new file with mode: 0644]