mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	wlr_scene: add color transform argument for rendering
This commit is contained in:
		
							parent
							
								
									ffdbfdbbbd
								
							
						
					
					
						commit
						391410deb5
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -469,6 +469,7 @@ void wlr_scene_output_set_position(struct wlr_scene_output *scene_output,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct wlr_scene_output_state_options {
 | 
					struct wlr_scene_output_state_options {
 | 
				
			||||||
	struct wlr_scene_timer *timer;
 | 
						struct wlr_scene_timer *timer;
 | 
				
			||||||
 | 
						struct wlr_color_transform *color_transform;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Allows use of a custom swapchain. This can be useful when trying out an
 | 
						 * Allows use of a custom swapchain. This can be useful when trying out an
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1861,6 +1861,7 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
 | 
				
			||||||
	struct wlr_render_pass *render_pass = wlr_renderer_begin_buffer_pass(output->renderer, buffer,
 | 
						struct wlr_render_pass *render_pass = wlr_renderer_begin_buffer_pass(output->renderer, buffer,
 | 
				
			||||||
			&(struct wlr_buffer_pass_options){
 | 
								&(struct wlr_buffer_pass_options){
 | 
				
			||||||
		.timer = timer ? timer->render_timer : NULL,
 | 
							.timer = timer ? timer->render_timer : NULL,
 | 
				
			||||||
 | 
							.color_transform = options->color_transform,
 | 
				
			||||||
	});
 | 
						});
 | 
				
			||||||
	if (render_pass == NULL) {
 | 
						if (render_pass == NULL) {
 | 
				
			||||||
		wlr_buffer_unlock(buffer);
 | 
							wlr_buffer_unlock(buffer);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue