mutter/tests/interactive
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
..
Makefile.am [tests] Adds an interactive cogl vertex buffer unit test 2009-03-16 16:19:51 +00:00
test-actor-clone.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-actors.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-animation.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-behave.c Clean up of the ClutterColor API 2009-03-10 12:38:02 +00:00
test-binding-pool.c Changes cogl_rectangle to take x1, y1, x2, y2 args not x1, y1, width, height 2009-01-28 17:20:15 +00:00
test-clip.c [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
test-clutter-cairo-flowers.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-cogl-multitexture.c [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
test-cogl-offscreen.c [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
test-cogl-primitives.c Change cogl_path_rectangle and cogl_path_round_rectangle to take x1,y1,x2,y2 2009-03-13 12:20:26 +00:00
test-cogl-tex-convert.c [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
test-cogl-tex-foreign.c [cogl-handle] Optimize how we define cogl handles 2009-04-02 11:58:43 +01:00
test-cogl-tex-getset.c [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
test-cogl-tex-polygon.c [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
test-cogl-tex-tile.c [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
test-cogl-vertex-buffer.c [cogl-handle] Optimize how we define cogl handles 2009-04-02 11:58:43 +01:00
test-depth.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-devices.c Bug 1162 - Re-works the tests/ to use the glib-2.16 unit testing 2008-11-07 19:32:28 +00:00
test-easing.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-entry.c Bug 1162 - Re-works the tests/ to use the glib-2.16 unit testing 2008-11-07 19:32:28 +00:00
test-events.c Bug 1162 - Re-works the tests/ to use the glib-2.16 unit testing 2008-11-07 19:32:28 +00:00
test-fbo.c Remove CloneTexture from the API 2009-01-27 15:18:45 +00:00
test-fullscreen.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-grab.c Bug 1162 - Re-works the tests/ to use the glib-2.16 unit testing 2008-11-07 19:32:28 +00:00
test-layout.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-main.c * tests/interactive/test-main.c (main): Allow more than two 2008-11-10 16:30:42 +00:00
test-model.c Bug 1162 - Re-works the tests/ to use the glib-2.16 unit testing 2008-11-07 19:32:28 +00:00
test-multistage.c [alpha] Allow registering alpha functions 2009-01-16 14:37:35 +00:00
test-offscreen.c Bug 1162 - Re-works the tests/ to use the glib-2.16 unit testing 2008-11-07 19:32:28 +00:00
test-paint-wrapper.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-perspective.c Bug 1162 - Re-works the tests/ to use the glib-2.16 unit testing 2008-11-07 19:32:28 +00:00
test-pixmap.c [tests] Some improvements for test-pixmap 2009-02-11 13:08:17 +00:00
test-project.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-random-text.c Update the interactive tests to ClutterText 2008-12-11 13:48:01 +00:00
test-rotate.c [text] Rename :alignment to :line-alignment 2009-02-05 19:54:48 +00:00
test-scale.c [animation] Move the alpha value to floating point 2009-01-20 16:42:49 +00:00
test-score.c Remove usage of the grave accent as quotation mark 2009-03-17 14:13:31 +00:00
test-script.c Remove usage of the grave accent as quotation mark 2009-03-17 14:13:31 +00:00
test-shader.c Update the interactive tests to ClutterText 2008-12-11 13:48:01 +00:00
test-stage-read-pixels.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-text-field.c Merge commit 'origin/master' into 1.0-integration 2009-05-20 16:49:22 +01:00
test-text.c [tests] Update the ClutterText interactive test 2009-01-07 15:54:08 +00:00
test-texture-async.c [tests] Remove unused variables 2009-03-16 12:17:03 +00:00
test-texture-quality.c [stage] Coalesce fog and perspective API 2009-03-10 12:38:03 +00:00
test-textures.c Bug 1162 - Re-works the tests/ to use the glib-2.16 unit testing 2008-11-07 19:32:28 +00:00
test-threads.c [alpha] Allow registering alpha functions 2009-01-16 14:37:35 +00:00
test-unproject.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-viewport.c [alpha] Allow registering alpha functions 2009-01-16 14:37:35 +00:00
wrapper.sh Bug 1162 - Re-works the tests/ to use the glib-2.16 unit testing 2008-11-07 19:32:28 +00:00