compositor: Store output_to_buffer transform in paint node
We already store the buffer_to_output, and this is just the inverse. The pixman renderer will use the inverted version. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
898c40752e
commit
0dba133151
|
@ -108,6 +108,7 @@ paint_node_update(struct weston_paint_node *pnode)
|
|||
struct weston_matrix *mat = &pnode->buffer_to_output_matrix;
|
||||
|
||||
weston_view_buffer_to_output_matrix(pnode->view, pnode->output, mat);
|
||||
weston_matrix_invert(&pnode->output_to_buffer_matrix, mat);
|
||||
pnode->needs_filtering = weston_matrix_needs_filtering(mat);
|
||||
}
|
||||
|
||||
|
|
|
@ -475,6 +475,7 @@ struct weston_paint_node {
|
|||
/* Mutable members: */
|
||||
|
||||
struct weston_matrix buffer_to_output_matrix;
|
||||
struct weston_matrix output_to_buffer_matrix;
|
||||
bool needs_filtering;
|
||||
|
||||
/* struct weston_output::paint_node_z_order_list */
|
||||
|
|
Loading…
Reference in New Issue