mutter/tests/conform
Neil Roberts 701440efd8 clutter-actor: Add a 'has_overlaps' virtual
This adds a virtual to ClutterActor so that an actor subclass can
report whether it has overlapping primitives. ClutterActor uses this
to determine whether it needs to use ClutterFlattenEffect to implement
the opacity property. The default implementation of the virtual
returns TRUE which means that most actors will end up being redirected
offscreen when the opacity != 255. ClutterTexture and ClutterRectangle
override this to return FALSE because they should never need to be
redirected. ClutterClone overrides it to divert to the source.

The values for the ClutterOffscreenRedirect enum have changed to:

AUTOMATIC_FOR_OPACITY

 The actor will only be redirected if has_overlaps returns TRUE and
 the opacity is < 255

ALWAYS_FOR_OPACITY

 The actor will always be redirected if the opacity < 255 regardless
 of the return value of has_overlaps

ALWAYS

 The actor will always be redirected offscreen.

This means that the property can't be used to prevent the actor from
being redirected but only to increase the likelihood that it will be
redirected.

ClutterActor now adds and removes the flatten effect depending on
whether flattening is needed directly in clutter_actor_paint(). There
are new internal versions of add/remove_effect that don't queue a
redraw. This means that ClutterFlattenEffect is now just a no-op
subclass of ClutterOffscreen. It is only needed because
ClutterOffscreen is abstract. Removing the effect also makes it so
that the cached image will be freed as soon as an actor is repainted
without being flattened.
2011-05-13 01:46:32 +01:00
..
ADDING_NEW_TESTS conform: Implement TEST_CONFORM_TODO() correctly 2010-10-12 17:11:52 +01:00
Makefile.am Add a conformance test for the offscreen-redirect property 2011-05-13 01:46:32 +01:00
run-tests.sh Restore the report on the conformance test suite 2010-07-07 14:52:19 +01:00
test-actor-destroy.c conform: Start cleaning up the conformance test suite 2010-10-12 17:42:18 +01:00
test-actor-invariants.c conform: Start cleaning up the conformance test suite 2010-10-12 17:42:18 +01:00
test-actor-size.c conform: Start cleaning up the conformance test suite 2010-10-12 17:42:18 +01:00
test-anchors.c conform: Start cleaning up the conformance test suite 2010-10-12 17:42:18 +01:00
test-animator.c conformance: Use g_assert_no_error() if available 2010-03-02 19:10:07 +00:00
test-behaviours.c Deprecate ClutterBehaviour and sub-classes 2010-11-18 15:21:16 +00:00
test-binding-pool.c keysyms: Update the macros to CLUTTER_KEY_* 2010-09-10 17:54:52 +01:00
test-clutter-cairo-texture.c Add a conformance test for ClutterCairoTexture 2010-05-11 15:57:12 +01:00
test-clutter-rectangle.c Disable single header inclusion for GLib 2009-06-15 11:29:37 +01:00
test-clutter-text.c event: Add setters for ClutterEvent members 2011-02-28 14:16:23 +00:00
test-clutter-texture.c [texture] Support picking textures according to their alpha channel 2010-05-28 16:07:17 +01:00
test-clutter-units.c test-clutter-units: Force a known resolution to avoid fuzzyness 2010-09-24 16:21:06 +01:00
test-cogl-atlas-migration.c Add a conformance test for atlas migration 2011-02-24 20:45:30 +00:00
test-cogl-backface-culling.c Replace cogl_color_set_from_* with cogl_color_init_from_* 2010-09-03 16:58:47 +01:00
test-cogl-blend-strings.c Avoid mixing declarations and code 2010-10-25 13:18:25 +01:00
test-cogl-depth-test.c Avoid mixing declarations and code 2010-10-25 13:18:25 +01:00
test-cogl-fixed.c tests: rename cogl conformance tests so they can be clearly identified 2009-11-27 00:28:39 +00:00
test-cogl-just-vertex-shader.c test-cogl-just-vertex-shader: Update to use the portable cogl_* names 2010-12-13 17:29:15 +00:00
test-cogl-materials.c test-cogl-materials: Use GL_MAX_VERTEX_ATTRIBS on GLES2 2010-12-13 17:29:14 +00:00
test-cogl-multitexture.c test-cogl-multitexture: Don't test the alpha component 2010-12-13 17:29:14 +00:00
test-cogl-npot-texture.c Make test-cogl-npot-texture a bit more extensive 2010-11-05 18:45:31 +00:00
test-cogl-object.c conform: Adds a test-cogl-object conformance test 2010-06-04 14:44:15 +01:00
test-cogl-offscreen.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
test-cogl-path.c test-cogl-path: Add tests for changing the fill rule 2010-06-29 20:37:14 +01:00
test-cogl-pipeline-user-matrix.c Add a conformance test for cogl_pipeline_set_layer_matrix 2011-02-09 16:14:12 +00:00
test-cogl-pixel-buffer.c tests: don't delay/skip frames due to glReadPixel concerns 2010-07-08 22:40:35 +01:00
test-cogl-premult.c Avoid mixing declarations and code 2010-10-25 13:18:25 +01:00
test-cogl-primitive.c cogl: s/Cogl*Vertex/CoglVertex*/ 2011-01-21 16:22:40 +00:00
test-cogl-readpixels.c test-cogl-readpixels: Reset the viewport and matrices 2010-05-06 14:18:32 +01:00
test-cogl-sub-texture.c tests: don't delay/skip frames due to glReadPixel concerns 2010-07-08 22:40:35 +01:00
test-cogl-texture-3d.c Add a conformance test for 3D textures 2010-07-13 14:29:02 +01:00
test-cogl-texture-get-set-data.c test-cogl-texture-get-set-data: Test the alpha component 2010-11-24 15:56:35 +00:00
test-cogl-texture-mipmaps.c tests: don't delay/skip frames due to glReadPixel concerns 2010-07-08 22:40:35 +01:00
test-cogl-texture-pixmap-x11.c Removes Cogl from the repository 2011-05-06 15:44:08 +01:00
test-cogl-texture-rectangle.c tests: don't delay/skip frames due to glReadPixel concerns 2010-07-08 22:40:35 +01:00
test-cogl-vertex-buffer-contiguous.c tests: don't delay/skip frames due to glReadPixel concerns 2010-07-08 22:40:35 +01:00
test-cogl-vertex-buffer-interleved.c tests: don't delay/skip frames due to glReadPixel concerns 2010-07-08 22:40:35 +01:00
test-cogl-vertex-buffer-mutability.c tests: don't delay/skip frames due to glReadPixel concerns 2010-07-08 22:40:35 +01:00
test-cogl-viewport.c Replace cogl_color_set_from_* with cogl_color_init_from_* 2010-09-03 16:58:47 +01:00
test-cogl-wrap-modes.c tests: don't delay/skip frames due to glReadPixel concerns 2010-07-08 22:40:35 +01:00
test-color.c color: Support the CSS hsl() notation 2010-11-22 15:02:47 +00:00
test-conform-common.c test-conform: Delay initializing Clutter until a test is run 2010-09-21 14:10:19 +01:00
test-conform-common.h conform: Implement TEST_CONFORM_TODO() correctly 2010-10-12 17:11:52 +01:00
test-conform-main.c Add a conformance test for the offscreen-redirect property 2011-05-13 01:46:32 +01:00
test-group.c [tests] Add a Group actor unit 2009-08-25 17:57:22 +01:00
test-launcher.sh.in build: Allow to run the tests from any directory 2010-07-06 12:39:15 +01:00
test-model.c model: Add support to define rows in ClutterScript 2011-01-21 20:44:17 +00:00
test-offscreen-redirect.c clutter-actor: Add a 'has_overlaps' virtual 2011-05-13 01:46:32 +01:00
test-paint-opacity.c Update the paint opacity unit test 2008-12-11 12:26:47 +00:00
test-path.c test-path: Fix the test when running against latest Cairo versions 2011-01-28 18:11:38 +00:00
test-pick.c Make the pick id pool per Stage 2011-05-06 17:47:41 +01:00
test-score.c conform: Move the Score test to the conformance suite 2010-07-30 19:39:35 +01:00
test-script-parser.c Deprecate ClutterBehaviour and sub-classes 2010-11-18 15:21:16 +00:00
test-state.c state: Plug some memory leakage 2010-08-13 12:12:59 +01:00
test-text-cache.c conform: Start cleaning up the conformance test suite 2010-10-12 17:42:18 +01:00
test-texture-fbo.c tests: don't delay/skip frames due to glReadPixel concerns 2010-07-08 22:40:35 +01:00
test-timeline-interpolate.c conform: Start cleaning up the conformance test suite 2010-10-12 17:42:18 +01:00
test-timeline-rewind.c ClutterTimeline: Fix the 'msecs' parameter for the new-frame signal 2011-01-24 11:52:47 +00:00
test-timeline.c test-timeline: Ignore the default stage 2011-02-19 16:47:20 +00:00