Skip to content

Commit

Permalink
[qtmozembed] Drop rendering guards until engine statuses are reported…
Browse files Browse the repository at this point in the history
… correctly. JB#55226 OMP#JOLLA-296

This commits disabled means to suspendRendering and readyToPaint
guards. After we have engine load status reported correctly we should
come back to this. For time being, this lets Gecko compositor to
render without extra guards.
  • Loading branch information
rainemak committed Sep 8, 2021
1 parent 098501d commit 5482758
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qmozwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ void QMozWindow::getPlatformImage(const std::function<void(void *image, int widt

void QMozWindow::suspendRendering()
{
// Revert this in context of JB#55286
#if 0
d->mWindow->SuspendRendering();
#endif
}

void QMozWindow::resumeRendering()
Expand Down
8 changes: 8 additions & 0 deletions src/qmozwindow_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,17 @@ void QMozWindowPrivate::getGLXContext(void *&context, void *&surface)

bool QMozWindowPrivate::setReadyToPaint(bool ready)
{
Q_UNUSED(ready);
return true;
// Revert this in context of JB#55286
#if 0
QMutexLocker lock(&mReadyToPaintMutex);
if (mReadyToPaint != ready) {
mReadyToPaint = ready;
return true;
}
return false;
#endif
}

void QMozWindowPrivate::WindowInitialized()
Expand Down Expand Up @@ -214,6 +219,9 @@ void QMozWindowPrivate::CompositingFinished()

bool QMozWindowPrivate::PreRender()
{
return true;
#if 0
QMutexLocker lock(&mReadyToPaintMutex);
return mReadyToPaint;
#endif
}

0 comments on commit 5482758

Please sign in to comment.