mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	buffer: remove renderer param from wlr_resource_get_buffer_size
The only reason we had this was because of EGL_WL_bind_wayland_display support, which has been dropped.
This commit is contained in:
		
							parent
							
								
									8a4957570f
								
							
						
					
					
						commit
						d3d1c69aca
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -151,7 +151,7 @@ bool wlr_resource_is_buffer(struct wl_resource *resource);
 | 
				
			||||||
 * Get the size of a wl_buffer resource.
 | 
					 * Get the size of a wl_buffer resource.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
bool wlr_resource_get_buffer_size(struct wl_resource *resource,
 | 
					bool wlr_resource_get_buffer_size(struct wl_resource *resource,
 | 
				
			||||||
	struct wlr_renderer *renderer, int *width, int *height);
 | 
						int *width, int *height);
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Import a client buffer and lock it.
 | 
					 * Import a client buffer and lock it.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -105,7 +105,7 @@ bool wlr_resource_is_buffer(struct wl_resource *resource) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool wlr_resource_get_buffer_size(struct wl_resource *resource,
 | 
					bool wlr_resource_get_buffer_size(struct wl_resource *resource,
 | 
				
			||||||
		struct wlr_renderer *renderer, int *width, int *height) {
 | 
							int *width, int *height) {
 | 
				
			||||||
	assert(wlr_resource_is_buffer(resource));
 | 
						assert(wlr_resource_is_buffer(resource));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct wl_shm_buffer *shm_buf = wl_shm_buffer_get(resource);
 | 
						struct wl_shm_buffer *shm_buf = wl_shm_buffer_get(resource);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -172,7 +172,7 @@ static void surface_state_finalize(struct wlr_surface *surface,
 | 
				
			||||||
	if ((state->committed & WLR_SURFACE_STATE_BUFFER)) {
 | 
						if ((state->committed & WLR_SURFACE_STATE_BUFFER)) {
 | 
				
			||||||
		if (state->buffer_resource != NULL) {
 | 
							if (state->buffer_resource != NULL) {
 | 
				
			||||||
			wlr_resource_get_buffer_size(state->buffer_resource,
 | 
								wlr_resource_get_buffer_size(state->buffer_resource,
 | 
				
			||||||
				surface->renderer, &state->buffer_width, &state->buffer_height);
 | 
									&state->buffer_width, &state->buffer_height);
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			state->buffer_width = state->buffer_height = 0;
 | 
								state->buffer_width = state->buffer_height = 0;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue