[backend] Abstract the GL context creation
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 13 May 2009 21:21:48 +0000 (22:21 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 13 May 2009 21:21:48 +0000 (22:21 +0100)
commitaa1246e8917f0977bd03b97c206d4c2a01ff8599
treefb4fb5e4ed01d0b416c0b328ee5c03a4fc85fb5d
parent1d7a79f343760d192619629de8e1ca9547007c13
[backend] Abstract the GL context creation

This is the another step into abstracting the backend operations
that are currently spread all across the board back into the
backend implementations where they belong.

The GL context creation, for instance, is demanded to the stage
realization which makes it a critical path for every operation
that is GL-context bound. This usually does not make any difference
since we realize the default stage, but at some point we might
start looking into avoiding the default stage realization in order
to make the Clutter startup faster.

It also makes the code maintainable because every part is self
contained and can be reworked with the minimum amount of pain.
clutter/clutter-backend.c
clutter/clutter-backend.h
clutter/clutter-private.h
clutter/glx/clutter-backend-glx.c
clutter/glx/clutter-stage-glx.c