mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	output: drop wlr_output_damage_whole()
This function is not used anymore. Backends have no good reason to damage outputs.
This commit is contained in:
		
							parent
							
								
									4452ed0651
								
							
						
					
					
						commit
						6c3d6be74b
					
				
					 2 changed files with 0 additions and 20 deletions
				
			
		| 
						 | 
					@ -129,10 +129,6 @@ void wlr_output_update_enabled(struct wlr_output *output, bool enabled);
 | 
				
			||||||
 * output changes.
 | 
					 * output changes.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
void wlr_output_update_needs_frame(struct wlr_output *output);
 | 
					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.
 | 
					 * Send a frame event.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -992,22 +992,6 @@ void wlr_output_update_needs_frame(struct wlr_output *output) {
 | 
				
			||||||
	wl_signal_emit_mutable(&output->events.needs_frame, 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(
 | 
					const struct wlr_drm_format_set *wlr_output_get_primary_formats(
 | 
				
			||||||
		struct wlr_output *output, uint32_t buffer_caps) {
 | 
							struct wlr_output *output, uint32_t buffer_caps) {
 | 
				
			||||||
	if (!output->impl->get_primary_formats) {
 | 
						if (!output->impl->get_primary_formats) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue