aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-12 00:39:03 +0100
committerSimon Ser <contact@emersion.fr>2022-11-17 09:17:32 +0000
commit6c3d6be74b75e9aa8b1d5b454eb3b408bfdcfe30 (patch)
tree3a0c329a602781c43b1f3981f6273156f42016bd
parent4452ed06513c2ad11a82131a99dbe35b505eb0cf (diff)
output: drop wlr_output_damage_whole()
This function is not used anymore. Backends have no good reason to damage outputs.
-rw-r--r--include/wlr/interfaces/wlr_output.h4
-rw-r--r--types/output/output.c16
2 files changed, 0 insertions, 20 deletions
diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h
index cfad8f70..073ed023 100644
--- a/include/wlr/interfaces/wlr_output.h
+++ b/include/wlr/interfaces/wlr_output.h
@@ -130,10 +130,6 @@ void wlr_output_update_enabled(struct wlr_output *output, bool enabled);
*/
void wlr_output_update_needs_frame(struct wlr_output *output);
/**
- * Notify compositors that the output needs to be fully repainted.
- */
-void wlr_output_damage_whole(struct wlr_output *output);
-/**
* Send a frame event.
*
* See wlr_output.events.frame.
diff --git a/types/output/output.c b/types/output/output.c
index 6c4b1a31..5528ee04 100644
--- a/types/output/output.c
+++ b/types/output/output.c
@@ -992,22 +992,6 @@ void wlr_output_update_needs_frame(struct wlr_output *output) {
wl_signal_emit_mutable(&output->events.needs_frame, output);
}
-void wlr_output_damage_whole(struct wlr_output *output) {
- int width, height;
- wlr_output_transformed_resolution(output, &width, &height);
-
- pixman_region32_t damage;
- pixman_region32_init_rect(&damage, 0, 0, width, height);
-
- struct wlr_output_event_damage event = {
- .output = output,
- .damage = &damage,
- };
- wl_signal_emit_mutable(&output->events.damage, &event);
-
- pixman_region32_fini(&damage);
-}
-
const struct wlr_drm_format_set *wlr_output_get_primary_formats(
struct wlr_output *output, uint32_t buffer_caps) {
if (!output->impl->get_primary_formats) {