]> git.cworth.org Git - apitrace/commit
mt trace: add helper to track GL contexts on a per-thread basis
authorImre Deak <imre.deak@intel.com>
Mon, 7 May 2012 06:10:26 +0000 (09:10 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 23 May 2012 08:23:18 +0000 (11:23 +0300)
commita150c4a0cf9e47931f0e79986f5f79b85aa5905e
treec406be58675004b9f7c133248cac8508da780c58
parente90cac47697d2c26ac3a6d5292de101519b46f95
mt trace: add helper to track GL contexts on a per-thread basis

This is needed for muti-threaded tracing to work properly.

Tracing multi-threaded GL apps requires that we track the lifetime of
the GL context objects and store thread specific state like the currently
active GL context on thread-local memory area.

Also add 'retain_count' to the context needed by the CGL retain/release
context calls.

Needed by the 4 upcoming GL API specific patches.

Signed-off-by: Imre Deak <imre.deak@intel.com>
wrappers/gltrace.hpp
wrappers/gltrace_state.cpp