mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 20:01:00 -05:00
49c8d42317
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 |
||
---|---|---|
.. | ||
meson | ||
.gitignore | ||
meson.build | ||
redhand.png | ||
test-actors.c | ||
test-animation.c | ||
test-bind-constraint.c | ||
test-binding-pool.c | ||
test-cairo-clock.c | ||
test-cairo-flowers.c | ||
test-cogl-multitexture.c | ||
test-cogl-offscreen.c | ||
test-cogl-point-sprites.c | ||
test-cogl-shader-glsl.c | ||
test-cogl-tex-convert.c | ||
test-cogl-tex-polygon.c | ||
test-cogl-tex-tile.c | ||
test-cogl-vertex-buffer.c | ||
test-content.c | ||
test-devices.c | ||
test-easing.c | ||
test-events.c | ||
test-grab.c | ||
test-image.c | ||
test-keyframe-transition.c | ||
test-layout.c | ||
test-main.c | ||
test-paint-wrapper.c | ||
test-path-constraint.c | ||
test-rotate-zoom.c | ||
test-script-signals.json | ||
test-script.c | ||
test-script.json | ||
test-scrolling.c | ||
test-shader-effects.c | ||
test-stage-sizing.c | ||
test-state-script.c | ||
test-state.c | ||
test-swipe-action.c | ||
test-text-field.c | ||
test-text.c | ||
test-touch-events.c | ||
wrapper.sh.in |