mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-31 19:09:25 +00:00
feat(src/components/camera/Camera): add comments
This commit is contained in:
parent
9f1fc6df26
commit
cad264ef9a
1 changed files with 4 additions and 3 deletions
|
|
@ -84,14 +84,13 @@ QOpenGLFramebufferObject *CameraRenderer::createFramebufferObject (const QSize &
|
|||
|
||||
CoreManager *core = CoreManager::getInstance();
|
||||
|
||||
core->lockVideoRender();
|
||||
|
||||
m_context_info->width = size.width();
|
||||
m_context_info->height = size.height();
|
||||
m_context_info->functions = MSFunctions::getInstance()->getFunctions();
|
||||
|
||||
// It's not the same thread as render.
|
||||
core->lockVideoRender();
|
||||
updateWindowId();
|
||||
|
||||
core->unlockVideoRender();
|
||||
|
||||
return new QOpenGLFramebufferObject(size, format);
|
||||
|
|
@ -128,6 +127,8 @@ void CameraRenderer::render () {
|
|||
}
|
||||
|
||||
void CameraRenderer::synchronize (QQuickFramebufferObject *item) {
|
||||
// No mutex needed here. It's a synchronized area.
|
||||
|
||||
m_window = item->window();
|
||||
|
||||
Camera *camera = qobject_cast<Camera *>(item);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue