MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / XGetImage

Function XGetImage

server/faker-x11.cpp:406–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404// 2D pixmap on the 2D X server before calling the "real" XGetImage() function.
405
406XImage *XGetImage(Display *dpy, Drawable drawable, int x, int y,
407 unsigned int width, unsigned int height, unsigned long plane_mask,
408 int format)
409{
410 XImage *xi = NULL;
411 TRY();
412
413 if(IS_EXCLUDED(dpy))
414 return _XGetImage(dpy, drawable, x, y, width, height, plane_mask, format);
415
416 /////////////////////////////////////////////////////////////////////////////
417 OPENTRACE(XGetImage); PRARGD(dpy); PRARGX(drawable); PRARGI(x);
418 PRARGI(y); PRARGI(width); PRARGI(height); PRARGX(plane_mask);
419 PRARGI(format); STARTTRACE();
420 /////////////////////////////////////////////////////////////////////////////
421
422 DISABLE_FAKER();
423
424 faker::VirtualPixmap *vpm = PMHASH.find(dpy, drawable);
425 if(vpm) vpm->readback();
426
427 xi = _XGetImage(dpy, drawable, x, y, width, height, plane_mask, format);
428
429 /////////////////////////////////////////////////////////////////////////////
430 STOPTRACE(); CLOSETRACE();
431 /////////////////////////////////////////////////////////////////////////////
432
433 CATCH();
434 ENABLE_FAKER();
435 return xi;
436}
437
438
439// Tell the application that the GLX extension is present, even if it isn't

Callers 3

offScreenTestFunction · 0.85
read_win_rectangleMethod · 0.85
fill_bitmapFunction · 0.85

Calls 2

findMethod · 0.45
readbackMethod · 0.45

Tested by

no test coverage detected