summaryrefslogtreecommitdiff
path: root/src/tests/clutter/performance
Commit message (Collapse)AuthorAgeFilesLines
* clutter: Pass 'ClutterFrame' in all stage update signalsJonas Ådahl2023-01-231-6/+8
| | | | | | | | | That means before-update, prepare-paint, before-paint, paint-view, after-paint, after-update. While yet to be used, it will be used as a transient frame book keeping object, to maintain object and state that is only valid during a frame dispatch. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2795>
* clutter: Remove "source" event union fieldsCarlos Garnacho2022-03-041-1/+0
| | | | | | | These are no longer used, drop the last places that modify those in event structs and remove them. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2311>
* tests: Make common test code a shared libraryJonas Ådahl2021-07-151-4/+2
| | | | | | | | This will require some symbol exporting, but the benefit is that have better control of what external test cases can do in terms of creating more testing specific contexts. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* tests/clutter: Don't have tests take argumentsJonas Ådahl2021-05-171-20/+1
| | | | | | | | It just complicates things; we can't run them right now, so just get rid of the runtime variability; just change the macros if you want to tweak the test, would you be able to get it running. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1833>
* clutter: Drop clutter_input_device_update_from_event()Carlos Garnacho2020-11-271-1/+0
| | | | | | | | Input devices aren't "updated" anymore, but their state queried to the seat instead. This API was only meant for embedders of Clutter, and is pointless to us. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
* tests: Use ClutterStage "after-paint" instead of ClutterActor "paint"Jonas Dreßler2020-10-231-7/+7
| | | | | | | | | | | | | | | The "paint" signal of ClutterActor is deprecated and will be removed. We have a good replacement to get notified about stage paints nowadays, that is "after-paint" on ClutterStage, so switch to that signal where it makes sense. I didn't bother to update the few tests (namely Clutters conform/texture-fbo.c, conform/text-cache.c, interactive/test-cogl-multitexture.c and Cogls conform/test-multitexture.c, conform/test-texture-mipmaps.c) where it's harder to replace the signal since we don't build those anyway. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1522
* clutter: Drop clutter_input_device_set_stage()Carlos Garnacho2020-10-231-1/+1
| | | | | | | Also drop the stage argument from clutter_input_device_set_coords() in consequence. No one uses this already. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1486
* clutter: Sanitize ClutterInputDevice headerCarlos Garnacho2020-10-231-0/+1
| | | | | | | Move some exposed setters to private headers. It makes some sense to provide those for backends, not as much to the upper layers. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1486
* *: Fix spelling mistakes found by codespellBjörn Daase2020-08-292-3/+3
| | | | https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1410
* tests/clutter: Always use stage from backendJonas Ådahl2020-08-134-19/+17
| | | | | | | | This removes all occurrences of creating a custom stage from the tests, making them always use the one from MetaBackend. This will allow for further cleanups. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1364
* clutter/actor: Remove anchor points and gravityGeorges Basile Stavracas Neto2020-06-271-2/+1
| | | | | | Drop the bomb. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1332
* tests: Replace ClutterRectangle with ClutterActorGeorges Basile Stavracas Neto2020-06-271-1/+2
| | | | | | | | | These tests were written (and copy-pasted) before ClutterActor had an actual background-color property. As a preparation to the removal of ClutterRectangle, replace all these rectangles with plain actors and background colors. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1332
* clutter/stage: Remove color propertyGeorges Basile Stavracas Neto2020-06-272-2/+2
| | | | | | | | | The property is deprecated and the current implementation simply redirects it to ClutterActor::background-color, so remove it. Also update the tests to set the background color directly. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1332
* clutter/actor: Remove clutter_actor_show_allGeorges Basile Stavracas Neto2020-06-271-1/+1
| | | | | | | Actors are visible by default these days, and this function is deprecated for a long time. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1332
* clutter: Remove deprecated 'ClutterState'Jonas Ådahl2020-05-076-823/+0
| | | | https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1192
* tests: Replace ClutterDeviceManager usage in favor of ClutterSeatCarlos Garnacho2020-01-301-1/+4
| | | | https://gitlab.gnome.org/GNOME/mutter/merge_requests/852
* tests/clutter: Remove unneeded gitignore filesJonas Ådahl2019-12-031-7/+0
| | | | | | We're using meson, so everything built ends up in the build directory. https://gitlab.gnome.org/GNOME/mutter/merge_requests/935
* clutter: Introduce paint contextsJonas Ådahl2019-12-031-2/+7
| | | | | | | | | | | | | | | | | | | | | | | 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
* tests/clutter: Replace ClutterTexture from image with custom helperJonas Ådahl2019-11-135-5/+12
| | | | | | | | | | | ClutterTexture is deprecated, lets remove the trivial usage with a simple gdk-pixbuf using constructor putting pixel contents into a ClutterImage then putting said image in a plain ClutterActor. Tested partially, as the interactive tests cannot be properly run at the moment. https://gitlab.gnome.org/GNOME/mutter/merge_requests/932
* clutter: Move tests to src/testsCarlos Garnacho2019-08-2413-0/+1521
Clutter doesn't hold anymore backend implementations, move tests where we have one that we may assign. https://gitlab.gnome.org/GNOME/mutter/merge_requests/672