1
0
Fork 0
A repository that has original source for patches used in the Arch User Repository package called "mutter-performance". https://aur.archlinux.org/packages/mutter-performance
Find a file
Emmanuele Bassi c56d5b1468 [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
common [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
doc/reference/cogl [cogl] Remove the COGL{enum,int,uint} typedefs 2009-05-12 14:53:44 +01:00
gl [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
gles [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
cogl-bitmap.h Fix inclusion guards and headers 2009-05-06 17:59:25 +01:00
cogl-color.h [cogl] Updates all file headers and removes lots of trailing white space 2009-05-02 04:12:25 +01:00
cogl-debug.h [cogl] Move debugging to a configure-time switch 2009-05-19 16:00:18 +01:00
cogl-deprecated.h [cogl] Updates all file headers and removes lots of trailing white space 2009-05-02 04:12:25 +01:00
cogl-fixed.h [cogl] Updates all file headers and removes lots of trailing white space 2009-05-02 04:12:25 +01:00
cogl-material.h [cogl-material] Adds a cogl_material_set_color4f convenience function 2009-05-02 04:12:26 +01:00
cogl-matrix.h [cogl] Updates all file headers and removes lots of trailing white space 2009-05-02 04:12:25 +01:00
cogl-offscreen.h [cogl-offscreen] Cleans up the cogl offscreen API and adds documentation 2009-05-02 04:12:26 +01:00
cogl-path.h [cogl] Updates all file headers and removes lots of trailing white space 2009-05-02 04:12:25 +01:00
cogl-shader.h [cogl] Remove the COGL{enum,int,uint} typedefs 2009-05-12 14:53:44 +01:00
cogl-texture.h [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
cogl-types.h [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
cogl-vertex-buffer.h [cogl] Updates all file headers and removes lots of trailing white space 2009-05-02 04:12:25 +01:00
cogl.h.in Make backface culling work with vertex buffers 2009-05-21 14:57:07 +01:00
cogl.pc.in [cogl] Fix hardcoded paths in the pc file 2009-03-10 12:38:04 +00:00
Makefile.am [build] Fix with --disable-introspection 2009-05-14 10:03:31 +01:00
TODO Merged clutter-ivan branch into trunk. 2008-04-25 13:37:36 +00:00