mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	output: Drop output_is_direct_scanout
This commit is contained in:
		
							parent
							
								
									9ef98452a3
								
							
						
					
					
						commit
						b1e38fc7ea
					
				
					 2 changed files with 0 additions and 17 deletions
				
			
		| 
						 | 
					@ -6,8 +6,6 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void output_pending_resolution(struct wlr_output *output,
 | 
					void output_pending_resolution(struct wlr_output *output,
 | 
				
			||||||
	const struct wlr_output_state *state, int *width, int *height);
 | 
						const struct wlr_output_state *state, int *width, int *height);
 | 
				
			||||||
bool output_is_direct_scanout(struct wlr_output *output,
 | 
					 | 
				
			||||||
	struct wlr_buffer *buffer);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct wlr_drm_format *output_pick_format(struct wlr_output *output,
 | 
					struct wlr_drm_format *output_pick_format(struct wlr_output *output,
 | 
				
			||||||
	const struct wlr_drm_format_set *display_formats, uint32_t format);
 | 
						const struct wlr_drm_format_set *display_formats, uint32_t format);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -242,18 +242,3 @@ uint32_t wlr_output_preferred_read_format(struct wlr_output *output) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return fmt;
 | 
						return fmt;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
bool output_is_direct_scanout(struct wlr_output *output,
 | 
					 | 
				
			||||||
		struct wlr_buffer *buffer) {
 | 
					 | 
				
			||||||
	if (output->swapchain == NULL) {
 | 
					 | 
				
			||||||
		return true;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	for (size_t i = 0; i < WLR_SWAPCHAIN_CAP; i++) {
 | 
					 | 
				
			||||||
		if (output->swapchain->slots[i].buffer == buffer) {
 | 
					 | 
				
			||||||
			return false;
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return true;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue