mutter/clutter/pango
Emmanuele Bassi 71498a6376 [cogl] Remove max_waste argument from Texture ctors
The CoglTexture constructors expose the "max-waste" argument for
controlling the maximum amount of wasted areas for slicing or,
if set to -1, disables slicing.

Slicing is really relevant only for large images that are never
repeated, so it's a useful feature only in controlled use cases.
Specifying the amount of wasted area is, on the other hand, just
a way to mess up this feature; 99% the times, you either pull this
number out of thin air, hoping it's right, or you try to do the
right thing and you choose the wrong number anyway.

Instead, we can use the CoglTextureFlags to control whether the
texture should not be sliced (useful for Clutter-GST and for the
texture-from-pixmap actors) and provide a reasonable value for
enabling the slicing ourself. At some point, we might even
provide a way to change the default at compile time or at run time,
for particular platforms.

Since max_waste is gone, the :tile-waste property of ClutterTexture
becomes read-only, and it proxies the cogl_texture_get_max_waste()
function.

Inside Clutter, the only cases where the max_waste argument was
not set to -1 are in the Pango glyph cache (which is a POT texture
anyway) and inside the test cases where we want to force slicing;
for the latter we can create larger textures that will be bigger than
the threshold we set.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
Signed-off-by: Robert Bragg <robert@linux.intel.com>
Signed-off-by: Neil Roberts <neil@linux.intel.com>
2009-05-23 19:35:19 +01:00
..
cogl-pango-display-list.c [cogl-pango-display-list] Use GL_TRIANGLES under GLES 2009-05-21 15:51:25 +01:00
cogl-pango-display-list.h Render pango layouts with vertex buffers 2009-04-29 19:53:24 +01:00
cogl-pango-fontmap.c 2008-10-31 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-31 17:48:24 +00:00
cogl-pango-glyph-cache.c [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
cogl-pango-glyph-cache.h [Automatic fixed-to-float.sh change] Applies all scripted changes 2009-01-20 16:20:54 +00:00
cogl-pango-private.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:11:29 +00:00
cogl-pango-render.c [pango-render] Keep a reference to the first line to detect layout changes 2009-05-21 12:17:12 +01:00
cogl-pango.h * clutter/pango/cogl-pango.h: Include pango/pango.h to get 2008-11-21 16:18:31 +00:00
Makefile.am Render pango layouts with vertex buffers 2009-04-29 19:53:24 +01:00