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

Function checkFrame

server/fakerut.cpp:219–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218
219void checkFrame(Display *dpy, Window win, int desiredReadbacks, int &lastFrame)
220{
221 int frame;
222 typedef int (*_vgl_getAutotestFrameType)(Display *, Window);
223 _vgl_getAutotestFrameType _vgl_getAutotestFrame;
224
225 _vgl_getAutotestFrame =
226 (_vgl_getAutotestFrameType)dlsym(RTLD_DEFAULT, "_vgl_getAutotestFrame");
227 if(!_vgl_getAutotestFrame)
228 THROWNL("Can't communicate w/ faker");
229 frame = _vgl_getAutotestFrame(dpy, win);
230 if(frame < 1)
231 THROWNL("Can't communicate w/ faker");
232 if(frame - lastFrame != desiredReadbacks && desiredReadbacks >= 0)
233 PRERROR3("Expected %d readback%s, not %d", desiredReadbacks,
234 desiredReadbacks == 1 ? "" : "s", frame - lastFrame);
235 lastFrame = frame;
236}
237
238
239void checkCurrent(Display *dpy, GLXDrawable draw, GLXDrawable read,

Callers 6

readbackTestFunction · 0.70
readbackTestMSFunction · 0.70
flushTestFunction · 0.70
runMethod · 0.70
offScreenTestFunction · 0.70
subWinTestFunction · 0.70

Calls 1

_vgl_getAutotestFrameFunction · 0.85

Tested by

no test coverage detected