Lines Matching refs:drawable
54 DrawablePtr drawable; member
109 get_drawable_pixmap(DrawablePtr drawable) in get_drawable_pixmap() argument
111 ScreenPtr screen = drawable->pScreen; in get_drawable_pixmap()
113 if (drawable->type == DRAWABLE_PIXMAP) in get_drawable_pixmap()
114 return (PixmapPtr) drawable; in get_drawable_pixmap()
116 return screen->GetWindowPixmap((WindowPtr) drawable); in get_drawable_pixmap()
120 ms_dri2_create_buffer2(ScreenPtr screen, DrawablePtr drawable, in ms_dri2_create_buffer2() argument
142 pixmap = get_drawable_pixmap(drawable); in ms_dri2_create_buffer2()
143 if (pixmap && pixmap->drawable.pScreen != screen) in ms_dri2_create_buffer2()
150 int pixmap_width = drawable->width; in ms_dri2_create_buffer2()
151 int pixmap_height = drawable->height; in ms_dri2_create_buffer2()
152 int pixmap_cpp = (format != 0) ? format : drawable->depth; in ms_dri2_create_buffer2()
194 buffer->cpp = pixmap->drawable.bitsPerPixel / 8; in ms_dri2_create_buffer2()
219 ms_dri2_create_buffer(DrawablePtr drawable, unsigned int attachment, in ms_dri2_create_buffer() argument
222 return ms_dri2_create_buffer2(drawable->pScreen, drawable, attachment, in ms_dri2_create_buffer()
244 ScreenPtr screen = private->pixmap->drawable.pScreen; in ms_dri2_destroy_buffer2()
254 static void ms_dri2_destroy_buffer(DrawablePtr drawable, DRI2Buffer2Ptr buffer) in ms_dri2_destroy_buffer() argument
256 ms_dri2_destroy_buffer2(NULL, drawable, buffer); in ms_dri2_destroy_buffer()
260 ms_dri2_copy_region2(ScreenPtr screen, DrawablePtr drawable, RegionPtr pRegion, in ms_dri2_copy_region2() argument
268 ? drawable : &src_pixmap->drawable; in ms_dri2_copy_region2()
270 ? drawable : &dst_pixmap->drawable; in ms_dri2_copy_region2()
277 drawable->pScreen != screen) { in ms_dri2_copy_region2()
278 dst = DRI2UpdatePrime(drawable, destBuffer); in ms_dri2_copy_region2()
281 if (dst != drawable) in ms_dri2_copy_region2()
285 if (translate && drawable->type == DRAWABLE_WINDOW) { in ms_dri2_copy_region2()
287 PixmapPtr pixmap = get_drawable_pixmap(drawable); in ms_dri2_copy_region2()
291 off_x += drawable->x; in ms_dri2_copy_region2()
292 off_y += drawable->y; in ms_dri2_copy_region2()
317 drawable->width, drawable->height, in ms_dri2_copy_region2()
324 ms_dri2_copy_region(DrawablePtr drawable, RegionPtr pRegion, in ms_dri2_copy_region() argument
327 ms_dri2_copy_region2(drawable->pScreen, drawable, pRegion, destBuffer, in ms_dri2_copy_region()
393 resource = ms_get_resource(info->drawable->id, frame_event_drawable_type); in ms_dri2_add_frame_event()
419 ms_dri2_blit_swap(DrawablePtr drawable, in ms_dri2_blit_swap() argument
428 box.x2 = drawable->width; in ms_dri2_blit_swap()
429 box.y2 = drawable->height; in ms_dri2_blit_swap()
432 ms_dri2_copy_region(drawable, ®ion, dst, src); in ms_dri2_blit_swap()
459 DrawablePtr drawable; in ms_dri2_flip_handler() local
462 status = dixLookupDrawable(&drawable, event->drawable_id, serverClient, in ms_dri2_flip_handler()
465 DRI2SwapComplete(event->client, drawable, frame, tv_sec, tv_usec, in ms_dri2_flip_handler()
476 DrawablePtr draw = info->drawable; in ms_dri2_schedule_flip()
522 front->cpp = pixmap->drawable.bitsPerPixel / 8; in update_front()
569 if (front_pixmap->drawable.width != back_pixmap->drawable.width) in can_exchange()
572 if (front_pixmap->drawable.height != back_pixmap->drawable.height) in can_exchange()
575 if (front_pixmap->drawable.bitsPerPixel != in can_exchange()
576 back_pixmap->drawable.bitsPerPixel) in can_exchange()
631 region.extents.x2 = front_priv->pixmap->drawable.width; in ms_dri2_exchange_buffers()
632 region.extents.y2 = front_priv->pixmap->drawable.height; in ms_dri2_exchange_buffers()
634 DamageRegionAppend(&front_priv->pixmap->drawable, ®ion); in ms_dri2_exchange_buffers()
638 DamageRegionProcessPending(&front_priv->pixmap->drawable); in ms_dri2_exchange_buffers()
647 DrawablePtr drawable = frame_info->drawable; in ms_dri2_frame_event_handler() local
653 if (!drawable) { in ms_dri2_frame_event_handler()
660 if (can_flip(scrn, drawable, frame_info->front, frame_info->back) && in ms_dri2_frame_event_handler()
662 ms_dri2_exchange_buffers(drawable, frame_info->front, frame_info->back); in ms_dri2_frame_event_handler()
667 ms_dri2_blit_swap(drawable, frame_info->front, frame_info->back); in ms_dri2_frame_event_handler()
668 DRI2SwapComplete(frame_info->client, drawable, msc, tv_sec, tv_usec, in ms_dri2_frame_event_handler()
676 DRI2WaitMSCComplete(frame_info->client, drawable, in ms_dri2_frame_event_handler()
726 wait_info->drawable = draw; in ms_dri2_schedule_wait_msc()
858 frame_info->drawable = draw; in ms_dri2_schedule_swap()
1014 info->drawable = NULL; in ms_dri2_frame_event_drawable_gone()