mutter/src/tests/clutter/interactive
Jonas Ådahl 49c8d42317 clutter: Introduce paint contexts
When painting, actors rely on semi global state tracked by the state to
get various things needed for painting, such as the current draw
framebuffer. Having state hidden in such ways can be very deceiving as
it's hard to follow changes spread out, and adding more and more state
that should be tracked during a paint gets annoying as they will not
change in isolation but one by one in their own places. To do this
better, introduce a paint context that is passed along in paint calls
that contains the necessary state needed during painting.

The paint context implements a framebuffer stack just as Cogl works,
which is currently needed for offscreen rendering used by clutter.

The same context is passed around for paint nodes, contents and effects
as well.

In this commit, the context is only introduced, but not used. It aims to
replace the Cogl framebuffer stack, and will allow actors to know what
view it is currently painted on.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/935
2019-12-03 19:02:14 +00:00
..
meson clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
.gitignore tests/clutter: Remove tests testing or relying on ClutterTexture 2019-11-13 13:56:08 +00:00
meson.build clutter: Remove deprecated ClutterTableLayout 2019-11-19 21:50:27 +00:00
redhand.png clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-actors.c tests/clutter: Replace ClutterTexture from image with custom helper 2019-11-13 13:56:08 +00:00
test-animation.c clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-bind-constraint.c clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-binding-pool.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-cairo-clock.c clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-cairo-flowers.c clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-cogl-multitexture.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-cogl-offscreen.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-cogl-point-sprites.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-cogl-shader-glsl.c cleanup: Use g_clear_handle_id() for g_source_remove() 2019-11-22 01:27:40 +01:00
test-cogl-tex-convert.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-cogl-tex-polygon.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-cogl-tex-tile.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-cogl-vertex-buffer.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-content.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-devices.c tests/clutter: Replace ClutterTexture from image with custom helper 2019-11-13 13:56:08 +00:00
test-easing.c tests/clutter/easing: Use ClutterCanvas 2019-11-13 13:56:08 +00:00
test-events.c Replace ClutterPoint by graphene_point_t 2019-10-16 11:38:14 +00:00
test-grab.c clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-image.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-keyframe-transition.c clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-layout.c tests/clutter: Replace ClutterTexture from image with custom helper 2019-11-13 13:56:08 +00:00
test-main.c tests/clutter/interactive: Init backend and mutter context 2019-11-13 13:56:08 +00:00
test-paint-wrapper.c clutter: Introduce paint contexts 2019-12-03 19:02:14 +00:00
test-path-constraint.c clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-rotate-zoom.c clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-script-signals.json clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-script.c clutter: Remove unused deprecated/clutter-behaviour-opacity.c 2019-10-22 19:01:17 +00:00
test-script.json tests/clutter: Remove tests testing or relying on ClutterTexture 2019-11-13 13:56:08 +00:00
test-scrolling.c clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-shader-effects.c tests/clutter: Replace ClutterTexture from image with custom helper 2019-11-13 13:56:08 +00:00
test-stage-sizing.c clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-state-script.c clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-state.c tests/clutter: Replace ClutterTexture from image with custom helper 2019-11-13 13:56:08 +00:00
test-swipe-action.c clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-text-field.c clutter: Remove deprecated ClutterTableLayout 2019-11-19 21:50:27 +00:00
test-text.c clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00
test-touch-events.c tests/clutter/touch-events: Use ClutterCanvas to draw touch 2019-11-13 13:56:08 +00:00
wrapper.sh.in clutter: Move tests to src/tests 2019-08-24 08:59:08 +00:00