Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[embedlite] Guard swaping while reading platform image. Contributes t…
…o JB#36158 RenderGL is called always from Gecko compositor thread. GLScreenBuffer::PublishFrame does swap buffers and that cannot happen while reading content of the previous frame on EmbedLiteCompositorParent::GetPlatformImage. This commit adds MutexAutoLock to sync GetPlatformImage and GLScreenBuffer::PublishFrame calls. For instance with QtMozEmbed GetPlatformImage is called is called from Qt rendering thread.
- Loading branch information
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters