Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[CoordinatedGraphics] Handle null native surface handle for surfacele…
…ss rendering https://bugs.webkit.org/show_bug.cgi?id=226165 Patch by Zan Dobersek <zdobersek@igalia.com> on 2021-05-24 Reviewed by Philippe Normand. During ThreadedCompositor initialization, a null native surface handle would represent a surfaceless rendering target. Assuming corresponding driver support for this behavior, the GL context creation would still succeed and composition could be performed. To support this behavior, the GL context is now spawned first, and if successful, the scene is set as active. But in case of a null native surface (i.e. surfaceless rendering), the painting has to be mirrored by default because of the OpenGL coordinate system being the immediate coordinate system inside which we end up working. * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp: (WebKit::m_displayRefreshMonitor): (WebKit::ThreadedCompositor::createGLContext): Canonical link: https://commits.webkit.org/238111@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@277998 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information