Skip to content

Commit

Permalink
Merge pull request #5 from sailfishos/jb54826
Browse files Browse the repository at this point in the history
[sailfishos][embedlite] Fix flickering on animated web page in a web view. Fixes JB#54826 OMP#JOLLA-226
  • Loading branch information
rainemak committed Jul 1, 2021
2 parents 66249d1 + 4d4f6ed commit 031602a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,16 @@ EmbedLiteCompositorBridgeParent::GetPlatformImage(const std::function<void(void
NS_ENSURE_TRUE(screen->Front(),);
SharedSurface* sharedSurf = screen->Front()->Surf();
NS_ENSURE_TRUE(sharedSurf, );
// sharedSurf->WaitSync();

sharedSurf->ProducerReadAcquire();
// See ProducerAcquireImpl() & ProducerReleaseImpl()
// See sha1 b66e705f3998791c137f8fce908ec0835b84afbe from gecko-mirror

if (sharedSurf->mType == SharedSurfaceType::EGLImageShare) {
SharedSurface_EGLImage* eglImageSurf = SharedSurface_EGLImage::Cast(sharedSurf);
callback(eglImageSurf->mImage, sharedSurf->mSize.width, sharedSurf->mSize.height);
}
sharedSurf->ProducerReadRelease();
}

void*
Expand Down

0 comments on commit 031602a

Please sign in to comment.