Print a warning when creating a cairo_t while painting
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 11 Dec 2008 15:48:43 +0000 (15:48 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 11 Dec 2008 15:48:43 +0000 (15:48 +0000)
commitcf9dea7cf6e079a8897c7b0d92da030c88cb964f
tree5bb7e85ad541cf715dd00e18c629a77329061d06
parent1b88122873afac513449b03c0658ab3802c84f3d
Print a warning when creating a cairo_t while painting

If you create a Cairo context in the middle of a paint run and then
you destroy it, the CairoTexture will have to upload the contents of
the image surface to the GL pipeline. This usually leads to slow
downs and general performance degradation.

ClutterCairoTexture will warn to the console if Clutter has been
compiled with the debug messages and if create() or create_region()
are called while an actor is in the middle of a paint.
clutter/clutter-cairo-texture.c