MCPcopy Create free account
hub / github.com/SFML/SFML / drmFbDestroyCallback

Function drmFbDestroyCallback

src/SFML/Window/DRM/DRMContext.cpp:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void drmFbDestroyCallback(gbm_bo* bo, void* data)
140{
141 const int drmFd = gbm_device_get_fd(gbm_bo_get_device(bo));
142 auto* fb = static_cast<DrmFb*>(data);
143
144 if (fb->fbId)
145 drmModeRmFB(drmFd, fb->fbId);
146
147 delete fb;
148}
149
150DrmFb* drmFbGetFromBo(gbm_bo& bo)
151{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected