1
0
Fork 0
mutter-performance-source/tests/conform
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
..
ADDING_NEW_TESTS * tests/conform/ADDING_NEW_TESTS 2008-11-10 18:52:50 +00:00
Makefile.am [build] Do not rebuild the conformance tests scripts 2009-05-14 08:38:28 +01:00
test-actor-invariants.c Enforce invariants on mapped, realized, visibility states 2009-04-24 15:27:19 +01:00
test-anchors.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-backface-culling.c [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01: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-clutter-fixed.c [tests] Test CoglFixed, not ClutterFixed 2009-03-10 12:38:03 +00:00
test-clutter-rectangle.c Bug 1162 - Re-works the tests/ to use the glib-2.16 unit testing 2008-11-07 19:32:28 +00:00
test-clutter-text.c [tests] Add unit for the ClutterText:password-char property 2009-01-06 15:30:31 +00:00
test-conform-common.c * tests/conform/ADDING_NEW_TESTS 2008-11-10 18:52:50 +00:00
test-conform-common.h Bug 1162 - Re-works the tests/ to use the glib-2.16 unit testing 2008-11-07 19:32:28 +00:00
test-conform-main.c Merge commit 'origin/master' into 1.0-integration 2009-05-20 16:49:22 +01:00
test-launcher.sh [tests] Ensure that test-launcher.sh is found for out of tree builds 2008-12-21 14:07:22 +00:00
test-model.c [tests] Exercise the Model filtering 2009-04-29 15:39:23 +01:00
test-npot-texture.c [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
test-paint-opacity.c Update the paint opacity unit test 2008-12-11 12:26:47 +00:00
test-path.c Merge branch 'cairo-texture' 2008-12-19 16:44:40 +00:00
test-pick.c Allow passing the pick mode to get_actor_at_pos() 2009-04-24 15:25:58 +01:00
test-text-cache.c [ClutterText] Fix actors with a width but no wrapping and the wrap modes 2009-04-27 17:43:48 +01:00
test-timeline-dup-frames.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-timeline-interpolate.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-timeline-rewind.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-timeline-smoothness.c Remove Units from the public API 2009-05-06 16:44:47 +01:00
test-timeline.c [tests] Manually advance the timelines 2009-05-01 15:08:42 +01:00
test-vertex-buffer-contiguous.c [cogl] Remove max_waste argument from Texture ctors 2009-05-23 19:35:19 +01:00
test-vertex-buffer-interleved.c [cogl-handle] Optimize how we define cogl handles 2009-04-02 11:58:43 +01:00
test-vertex-buffer-mutability.c [cogl-handle] Optimize how we define cogl handles 2009-04-02 11:58:43 +01:00