mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-05 13:29:47 -05:00
Implement wlr_surface_flush_damage
This commit is contained in:
parent
947bb2e436
commit
7da43ff8b0
4 changed files with 47 additions and 17 deletions
|
|
@ -42,6 +42,7 @@ void handle_output_frame(struct output_state *output, struct timespec *ts) {
|
|||
float matrix[16];
|
||||
wl_list_for_each(_res, &sample->compositor.surfaces, link) {
|
||||
struct wlr_surface *surface = wl_resource_get_user_data(_res);
|
||||
wlr_surface_flush_damage(surface);
|
||||
if (surface->texture->valid) {
|
||||
wlr_texture_get_matrix(surface->texture, &matrix,
|
||||
&wlr_output->transform_matrix, 200, 200);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue