mutter/tests/conform
Neil Roberts c0a553163b cogl: Support any format in cogl_read_pixels
cogl_read_pixels() no longer asserts that the format passed in is
RGBA_8888 but instead accepts any format. The appropriate GL enums for
the format are passed to glReadPixels so OpenGL should be perform a
conversion if neccessary.

It currently assumes glReadPixels will always give us premultiplied
data. This will usually be correct because the result of the default
blending operations for Cogl ends up with premultiplied data in the
framebuffer. However it is possible for the framebuffer to be in
whatever format depending on what CoglMaterial is used to render to
it. Eventually we may want to add a way for an application to inform
Cogl that the framebuffer is not premultiplied in case it is being
used for some special purpose.

If the requested format is not premultiplied then Cogl will convert
it. The tests have been changed to read the data as premultiplied so
that they won't be affected by the conversion. Picking in Clutter has
been changed to use COGL_PIXEL_FORMAT_RGB_888 because it doesn't need
the alpha component. clutter_stage_read_pixels is left unchanged
because the application can't specify a format for that so it seems to
make most sense to store unpremultiplied values.

http://bugzilla.openedhand.com/show_bug.cgi?id=1959
2010-03-02 11:01:35 +00:00
..
ADDING_NEW_TESTS * tests/conform/ADDING_NEW_TESTS 2008-11-10 18:52:50 +00:00
Makefile.am build: Enable experimental COGL API in tests/conform 2010-02-15 11:58:55 +00:00
test-actor-destroy.c actor: Turn push/pop_internal into Actor methods 2010-02-15 16:09:26 +00:00
test-actor-invariants.c conformance: Show the Stage to test invariants 2010-02-24 12:25:48 +00:00
test-actor-size.c [tests] Add preferred size conformance test unit 2009-09-15 11:27:50 +01:00
test-anchors.c Remove usage of Units and macros 2009-06-04 16:30:30 +01:00
test-animator.c conform: Verify parsing of multiple properties 2010-02-24 16:43:17 +00:00
test-behaviours.c conform: fix stack corruption in test-behaviours.c 2010-02-09 13:09:24 +00:00
test-binding-pool.c Remove usage of Units and macros 2009-06-04 16:30:30 +01:00
test-clutter-rectangle.c Disable single header inclusion for GLib 2009-06-15 11:29:37 +01:00
test-clutter-text.c [tests] Add unit for the ClutterText:password-char property 2009-01-06 15:30:31 +00:00
test-clutter-units.c units: Improve coverage of clutter_units_from_string() 2010-01-13 17:31:13 +00:00
test-cogl-backface-culling.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
test-cogl-blend-strings.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00: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-materials.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
test-cogl-multitexture.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
test-cogl-npot-texture.c test-cogl-npot-texture: Use the COGL_TEXTURE_NO_ATLAS flag 2010-01-19 17:15:51 +00:00
test-cogl-offscreen.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
test-cogl-pixel-buffer.c build: Enable experimental COGL API in tests/conform 2010-02-15 11:58:55 +00:00
test-cogl-premult.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
test-cogl-readpixels.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
test-cogl-sub-texture.c cogl-sub-texture: Optimise taking a sub texture of a sub texture 2010-02-12 16:57:17 +00:00
test-cogl-texture-mipmaps.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
test-cogl-vertex-buffer-contiguous.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
test-cogl-vertex-buffer-interleved.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
test-cogl-vertex-buffer-mutability.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
test-cogl-viewport.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
test-color.c conform: Add operators tests for ClutterColor 2010-01-14 14:07:04 +00:00
test-conform-common.c * tests/conform/ADDING_NEW_TESTS 2008-11-10 18:52:50 +00:00
test-conform-common.h tests: Allow getting data files from the tests/data directory 2009-11-04 11:47:09 +00:00
test-conform-main.c model: Implement ClutterScriptable interface 2010-02-25 23:09:11 +00:00
test-group.c [tests] Add a Group actor unit 2009-08-25 17:57: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 conformance: Use g_test_verbose() for logging 2010-02-25 23:15:59 +00:00
test-paint-opacity.c Update the paint opacity unit test 2008-12-11 12:26:47 +00:00
test-path.c analysis: Conformance tests 2010-02-12 14:57:56 +00:00
test-pick.c conform: Do not resize the stage 2010-02-16 12:19:15 +00:00
test-script-parser.c conform: Add named object property unit for ClutterScript 2009-11-30 19:11:00 +00:00
test-text-cache.c Change the paint forcing on the Text cache text 2009-06-11 12:23:09 +01:00
test-texture-fbo.c test-texture-fbo: Disconnect the paint handler for the stage 2010-01-18 12:42:46 +00:00
test-timeline-interpolate.c Revert "[timeline] Don't clamp the elapsed time when a looping tl reaches the end" 2009-06-11 11:46:41 +01:00
test-timeline-rewind.c [tests] Don't add a newline to the end of g_test_message calls 2009-06-11 11:38:49 +01:00
test-timeline.c [test-timeline] Add a marker at the beginning of the timeline 2009-06-11 11:32:41 +01:00