summaryrefslogtreecommitdiff
path: root/src/cairo-glx-context.c
AgeCommit message (Collapse)AuthorFilesLines
2011-02-26gl: Take advantage of GLX_MESA_multithread_makecurrent to avoid unbinding.Eric Anholt1-1/+11
Because of GLX's unfortunate requirement that only one context have a thread current at a time, we had to unbind the context, triggering a flush, and eating of all the CPU. With a small tweak to the GLX spec by GLX_MESA_multithread_makecurrent, and a small tweak to Mesa that consisted mostly of deleting the "is this thread already bound elsewhere?" check, we can bind our context to any thread and use it safely as long as our usage of it is mutexed, which cairo-gl should already be doing. [ 0] before firefox-talos-gfx 50.260 50.525 0.25% 3/3 [ 0] after firefox-talos-gfx 32.091 32.422 0.65% 3/3
2010-12-15gl: Embed the GL dispatch table in the cairo-gl context and initialize it.Alexandros Frantzis1-0/+7
2010-06-18glx: Remove useless optimization trying to avoid glXMakeCurrent()Benjamin Otte1-17/+2
The optimization is not performance-relevant. And having less code is always a good idea.
2010-06-07glx: When acquiring device, use the correct drawableBenjamin Otte1-3/+13
2010-04-27Update FSF addressAndrea Canciani1-1/+1
I updated the Free Software Foundation address using the following script. for i in $(git grep Temple | cut -d: -f1 ) do sed -e 's/59 Temple Place[, -]* Suite 330, Boston, MA *02111-1307[, ]* USA/51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA/' -i "$i" done Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21356
2010-04-15glx: Add getters for device's Display and GLXContextBenjamin Otte1-0/+30
2010-04-15gl: Make code safe for multithreaded accessBenjamin Otte1-2/+35
The code callss the gl device's acquire/release in cairo_device_acquire/release(). This way, external APIs can use these functions to prepare for rendering GL. Also adds code to unset the glx context if it wasn't set when acquiring the device. This allows multithreaded apps to work fine with just using cairo APIs, but might introduce penalties in single-threaded applications.
2010-01-22gl: Port to cairo_device_tChris Wilson1-10/+15
2010-01-22Move _cairo_error() to a standalone headerChris Wilson1-0/+2
A pending commit will want to include some utility code from cairo and so we need to extricate the error handling from the PLT symbol hiding.
2009-09-22[gl] Handle an absent visual.Chris Wilson1-3/+4
If we cannot find the correct visual for the fbconfig, return an error instead of crashing. The difference is subtle, granted.
2009-09-03[boilerplate] Handle errors whilst creating GL surfaceChris Wilson1-8/+8
2009-07-22[gl] Add warning about missing hook for XCloseDisplay().Chris Wilson1-0/+2
2009-07-21[gl] Construct a dummy window for the initial contextChris Wilson1-7/+63
In order to make the initial context current we need a Drawable that matches the context. In general, the RootWindow may not match the desired context so we need to query the context and construct an appropriate Drawable.
2009-05-20[gl] Add EGL targetChris Wilson1-0/+136
Split the GLX context from the GL surface to enable use of an alternative EGL interface.