Lines Matching refs:xwl_pixmap

50     struct xwl_pixmap *xwl_pixmap;  member
78 struct xwl_pixmap { struct
275 xwl_eglstream_unref_pixmap_stream(struct xwl_pixmap *xwl_pixmap) in xwl_eglstream_unref_pixmap_stream() argument
277 struct xwl_screen *xwl_screen = xwl_pixmap->xwl_screen; in xwl_eglstream_unref_pixmap_stream()
279 if (--xwl_pixmap->refcount >= 1) in xwl_eglstream_unref_pixmap_stream()
287 if (eglGetCurrentSurface(EGL_READ) == xwl_pixmap->surface || in xwl_eglstream_unref_pixmap_stream()
288 eglGetCurrentSurface(EGL_DRAW) == xwl_pixmap->surface) { in xwl_eglstream_unref_pixmap_stream()
294 if (xwl_pixmap->surface) in xwl_eglstream_unref_pixmap_stream()
295 eglDestroySurface(xwl_screen->egl_display, xwl_pixmap->surface); in xwl_eglstream_unref_pixmap_stream()
297 eglDestroyStreamKHR(xwl_screen->egl_display, xwl_pixmap->stream); in xwl_eglstream_unref_pixmap_stream()
299 wl_buffer_destroy(xwl_pixmap->buffer); in xwl_eglstream_unref_pixmap_stream()
300 free(xwl_pixmap); in xwl_eglstream_unref_pixmap_stream()
306 struct xwl_pixmap *xwl_pixmap = xwl_pixmap_get(pixmap); in xwl_glamor_eglstream_destroy_pixmap() local
308 if (xwl_pixmap && pixmap->refcnt == 1) in xwl_glamor_eglstream_destroy_pixmap()
309 xwl_eglstream_unref_pixmap_stream(xwl_pixmap); in xwl_glamor_eglstream_destroy_pixmap()
344 pending->xwl_pixmap->refcount++; in xwl_eglstream_set_window_pixmap()
401 struct xwl_pixmap *xwl_pixmap; in xwl_eglstream_consumer_ready_callback() local
416 xwl_eglstream_unref_pixmap_stream(pending->xwl_pixmap); in xwl_eglstream_consumer_ready_callback()
422 xwl_pixmap = pending->xwl_pixmap; in xwl_eglstream_consumer_ready_callback()
423 xwl_pixmap->surface = eglCreateStreamProducerSurfaceKHR( in xwl_eglstream_consumer_ready_callback()
425 xwl_pixmap->stream, (int[]) { in xwl_eglstream_consumer_ready_callback()
464 pending_stream->xwl_pixmap = xwl_pixmap_get(pixmap); in xwl_eglstream_queue_pending_stream()
491 struct xwl_pixmap *xwl_pixmap; in xwl_eglstream_create_pending_stream() local
496 xwl_pixmap = calloc(sizeof(*xwl_pixmap), 1); in xwl_eglstream_create_pending_stream()
497 if (!xwl_pixmap) in xwl_eglstream_create_pending_stream()
499 xwl_pixmap_set_private(pixmap, xwl_pixmap); in xwl_eglstream_create_pending_stream()
503 xwl_pixmap->xwl_screen = xwl_screen; in xwl_eglstream_create_pending_stream()
504 xwl_pixmap->refcount = 1; in xwl_eglstream_create_pending_stream()
505 xwl_pixmap->stream = eglCreateStreamKHR(xwl_screen->egl_display, NULL); in xwl_eglstream_create_pending_stream()
507 xwl_pixmap->stream); in xwl_eglstream_create_pending_stream()
510 xwl_pixmap->buffer = in xwl_eglstream_create_pending_stream()
518 wl_buffer_add_listener(xwl_pixmap->buffer, in xwl_eglstream_create_pending_stream()
520 xwl_pixmap); in xwl_eglstream_create_pending_stream()
523 xwl_eglstream->controller, xwl_window->surface, xwl_pixmap->buffer); in xwl_eglstream_create_pending_stream()
538 struct xwl_pixmap *xwl_pixmap = xwl_pixmap_get(pixmap); in xwl_glamor_eglstream_allow_commits() local
540 if (xwl_pixmap) { in xwl_glamor_eglstream_allow_commits()
571 struct xwl_pixmap *xwl_pixmap = xwl_pixmap_get(pixmap); in xwl_glamor_eglstream_post_damage() local
585 if (eglGetCurrentSurface(EGL_READ) != xwl_pixmap->surface || in xwl_glamor_eglstream_post_damage()
586 eglGetCurrentSurface(EGL_DRAW) != xwl_pixmap->surface) in xwl_glamor_eglstream_post_damage()
588 xwl_pixmap->surface, xwl_pixmap->surface, in xwl_glamor_eglstream_post_damage()
610 xwl_pixmap->surface, egl_damage, 1); in xwl_glamor_eglstream_post_damage()
612 eglSwapBuffers(xwl_screen->egl_display, xwl_pixmap->surface); in xwl_glamor_eglstream_post_damage()
620 xwl_pixmap->refcount++; in xwl_glamor_eglstream_post_damage()