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] Add support for creating external GL context early. JB#30162
In sailfish browser we're interested in creating external window compositing surface as early as possible. To avoid seeing any rendering artifacts / content from a previously rendered web page we want to reset the state of the surface to a know state. Unfortunately gecko creates it's compositor context after the page being loaded requests it's first frame to be painted. In majority of cases this is to late for us. This patch introduces an additional gecko pref which asks the embedder to create it's GL context as soon as top level PuppetWidget is created for the view. The initial request is made from the compositor thread since the GLContext object created by the application will be used from this thread. The PuppetWidget does not do any caching of the requested context. It's expected that this part will be handled by the application itself (already the case for sailfish-browser).
- Loading branch information
Showing
3 changed files
with
29 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
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