mobile/gl/glutil
David Crawshaw 068a51c195 gl: batch calls onto a dedicated context thread
All GL function calls fill out a C.struct_fnargs and drop it on the
work queue. The Start function drains the work queue and hands
over a batch of calls to C.process which runs them. This allows
multiple GL calls to be executed in a single cgo call.

A GL call is marked as blocking if it returns a value, or if it
takes a Go pointer. In this case the call will not return until
C.process sends a value on the retvalue channel.

Change-Id: I4c76b2a8ad55f57b0c98d200d0fb708d4634e042
Reviewed-on: https://go-review.googlesource.com/10452
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2015-06-01 15:35:03 +00:00
..
context_darwin_amd64.go gl/glutil: context is only for desktop darwin 2015-02-21 01:04:00 +00:00
context_x11.go go.mobile/gl/glutil: enable glimage_test on linux/X11. 2014-11-03 10:31:19 +11:00
glimage.go gl: batch calls onto a dedicated context thread 2015-06-01 15:35:03 +00:00
glimage_test.go gl: batch calls onto a dedicated context thread 2015-06-01 15:35:03 +00:00
glutil.go gl: batch calls onto a dedicated context thread 2015-06-01 15:35:03 +00:00