Remove unused field
This commit is contained in:
parent
09f8e7117b
commit
6f8e517ce1
2 changed files with 3 additions and 5 deletions
|
|
@ -1369,6 +1369,7 @@ void DrmRenderer::enterOverlayCompositionMode()
|
||||||
}
|
}
|
||||||
|
|
||||||
struct drm_mode_create_dumb createBuf = {};
|
struct drm_mode_create_dumb createBuf = {};
|
||||||
|
uint32_t fbId;
|
||||||
void* mapping = nullptr;
|
void* mapping = nullptr;
|
||||||
|
|
||||||
createBuf.width = m_OutputRect.w;
|
createBuf.width = m_OutputRect.w;
|
||||||
|
|
@ -1386,7 +1387,7 @@ void DrmRenderer::enterOverlayCompositionMode()
|
||||||
goto Fail;
|
goto Fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!createFbForDumbBuffer(&createBuf, &m_OverlayCompositionSurfaceFbId)) {
|
if (!createFbForDumbBuffer(&createBuf, &fbId)) {
|
||||||
goto Fail;
|
goto Fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1402,9 +1403,7 @@ void DrmRenderer::enterOverlayCompositionMode()
|
||||||
// NB: This will take ownership of both the FB and the dumb buffer,
|
// NB: This will take ownership of both the FB and the dumb buffer,
|
||||||
// but it won't free them until we stop streaming since we don't
|
// but it won't free them until we stop streaming since we don't
|
||||||
// flip this plane anymore after this.
|
// flip this plane anymore after this.
|
||||||
m_PropSetter.flipPlane(m_OverlayPlanes[0],
|
m_PropSetter.flipPlane(m_OverlayPlanes[0], fbId, createBuf.handle);
|
||||||
m_OverlayCompositionSurfaceFbId,
|
|
||||||
createBuf.handle);
|
|
||||||
|
|
||||||
// Create an SDL surface that wraps our dumb buffer mapping
|
// Create an SDL surface that wraps our dumb buffer mapping
|
||||||
m_OverlayCompositionSurface = SDL_CreateRGBSurfaceWithFormatFrom(mapping,
|
m_OverlayCompositionSurface = SDL_CreateRGBSurfaceWithFormatFrom(mapping,
|
||||||
|
|
|
||||||
|
|
@ -739,7 +739,6 @@ private:
|
||||||
DrmPropertyMap m_OverlayPlanes[Overlay::OverlayMax];
|
DrmPropertyMap m_OverlayPlanes[Overlay::OverlayMax];
|
||||||
DrmPropertySetter m_PropSetter;
|
DrmPropertySetter m_PropSetter;
|
||||||
SDL_Surface* m_OverlayCompositionSurface;
|
SDL_Surface* m_OverlayCompositionSurface;
|
||||||
uint32_t m_OverlayCompositionSurfaceFbId;
|
|
||||||
std::mutex m_OverlayLock;
|
std::mutex m_OverlayLock;
|
||||||
SDL_Rect m_OverlayRects[Overlay::OverlayMax];
|
SDL_Rect m_OverlayRects[Overlay::OverlayMax];
|
||||||
drmVersionPtr m_Version;
|
drmVersionPtr m_Version;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue