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

Function RRTransSendFrame

server/testplugin2.cpp:175–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173
174
175int RRTransSendFrame(void *handle, RRFrame *frame, int sync)
176{
177 _vgl_disableFaker();
178
179 int ret = 0;
180 try
181 {
182 X11Trans *trans = (X11Trans *)handle;
183 if(!trans) THROW("Invalid handle");
184 FBXFrame *f;
185 if(!frame || (f = (FBXFrame *)frame->opaque) == NULL)
186 THROW("Invalid frame handle");
187 trans->sendFrame(f, (bool)sync);
188 delete frame;
189 }
190 catch(std::exception &e)
191 {
192 snprintf(errStr, MAXSTR + 14, "Error in %s -- %s", GET_METHOD(e),
193 e.what());
194 ret = -1;
195 }
196
197 _vgl_enableFaker();
198
199 return ret;
200}
201
202
203int RRTransDestroy(void *handle)

Callers

nothing calls this directly

Calls 4

whatMethod · 0.80
_vgl_disableFakerFunction · 0.70
_vgl_enableFakerFunction · 0.70
sendFrameMethod · 0.45

Tested by

no test coverage detected