Lines Matching refs:surface

88                                        QXLDevSurfaceCreate *surface,  in qemu_spice_create_primary_surface()  argument
91 trace_qemu_spice_create_primary_surface(ssd->qxl.id, id, surface, async); in qemu_spice_create_primary_surface()
93 spice_qxl_create_primary_surface_async(&ssd->qxl, id, surface, in qemu_spice_create_primary_surface()
97 spice_qxl_create_primary_surface(&ssd->qxl, id, surface); in qemu_spice_create_primary_surface()
174 pixman_image_composite(PIXMAN_OP_SRC, ssd->surface, NULL, ssd->mirror, in qemu_spice_create_one_update()
324 QXLDevSurfaceCreate surface; in qemu_spice_create_host_primary() local
327 memset(&surface, 0, sizeof(surface)); in qemu_spice_create_host_primary()
339 surface.format = SPICE_SURFACE_FMT_32_xRGB; in qemu_spice_create_host_primary()
340 surface.width = surface_width(ssd->ds); in qemu_spice_create_host_primary()
341 surface.height = surface_height(ssd->ds); in qemu_spice_create_host_primary()
342 surface.stride = -surface.width * 4; in qemu_spice_create_host_primary()
343 surface.mouse_mode = true; in qemu_spice_create_host_primary()
344 surface.flags = 0; in qemu_spice_create_host_primary()
345 surface.type = 0; in qemu_spice_create_host_primary()
346 surface.mem = (uintptr_t)ssd->buf; in qemu_spice_create_host_primary()
347 surface.group_id = MEMSLOT_GROUP_HOST; in qemu_spice_create_host_primary()
349 qemu_spice_create_primary_surface(ssd, 0, &surface, QXL_SYNC); in qemu_spice_create_host_primary()
388 DisplaySurface *surface) in qemu_spice_display_switch() argument
393 if (ssd->surface && in qemu_spice_display_switch()
394 surface_width(surface) == pixman_image_get_width(ssd->surface) && in qemu_spice_display_switch()
395 surface_height(surface) == pixman_image_get_height(ssd->surface) && in qemu_spice_display_switch()
396 surface_format(surface) == pixman_image_get_format(ssd->surface)) { in qemu_spice_display_switch()
399 surface_width(surface), in qemu_spice_display_switch()
400 surface_height(surface), in qemu_spice_display_switch()
403 ssd->ds = surface; in qemu_spice_display_switch()
404 pixman_image_unref(ssd->surface); in qemu_spice_display_switch()
405 ssd->surface = pixman_image_ref(ssd->ds->image); in qemu_spice_display_switch()
408 surface_width(surface), in qemu_spice_display_switch()
409 surface_height(surface)); in qemu_spice_display_switch()
415 surface_width(surface), in qemu_spice_display_switch()
416 surface_height(surface), in qemu_spice_display_switch()
420 if (ssd->surface) { in qemu_spice_display_switch()
421 pixman_image_unref(ssd->surface); in qemu_spice_display_switch()
422 ssd->surface = NULL; in qemu_spice_display_switch()
429 ssd->ds = surface; in qemu_spice_display_switch()
439 ssd->surface = pixman_image_ref(ssd->ds->image); in qemu_spice_display_switch()
737 DisplaySurface *surface) in display_switch() argument
740 qemu_spice_display_switch(ssd, surface); in display_switch()