shm/render: there's no need to have one pixman image per thread

This commit is contained in:
Daniel Eklöf 2019-08-16 22:54:05 +02:00
parent f45e5c6aef
commit 72d3cbca26
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 10 additions and 29 deletions

View file

@ -367,7 +367,7 @@ render_worker_thread(void *_ctx)
switch (row_no) {
default:
assert(buf != NULL);
render_row(term, buf->pix[my_id], grid_row_in_view(term->grid, row_no), row_no);
render_row(term, buf->pix, grid_row_in_view(term->grid, row_no), row_no);
break;
case -1:
@ -405,7 +405,7 @@ grid_render(struct terminal *term)
assert(term->height > 0);
struct buffer *buf = shm_get_buffer(term->wl.shm, term->width, term->height, 1 + term->render.workers.count);
pixman_image_t *pix = buf->pix[0];
pixman_image_t *pix = buf->pix;
bool all_clean = tll_length(term->grid->scroll_damage) == 0;