Title: [249951] trunk/Source/WebCore
- Revision
- 249951
- Author
- [email protected]
- Date
- 2019-09-17 03:12:26 -0700 (Tue, 17 Sep 2019)
Log Message
[GTK] Cannot create EGL window surface: EGL_BAD_ALLOC
https://bugs.webkit.org/show_bug.cgi?id=201505
Reviewed by Žan Doberšek.
This happens because eglCreateWindowSurface() is called twice for the same window when not using the WPE
renderer. New versions of Mesa fail the second time with a EGL_BAD_ALLOC.
* platform/graphics/egl/GLContextEGL.cpp:
(WebCore::GLContextEGL::createWindowContext): Check surface is nullptr before falling back to use
eglCreateWindowSurface().
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (249950 => 249951)
--- trunk/Source/WebCore/ChangeLog 2019-09-17 09:03:40 UTC (rev 249950)
+++ trunk/Source/WebCore/ChangeLog 2019-09-17 10:12:26 UTC (rev 249951)
@@ -1,3 +1,17 @@
+2019-09-17 Carlos Garcia Campos <[email protected]>
+
+ [GTK] Cannot create EGL window surface: EGL_BAD_ALLOC
+ https://bugs.webkit.org/show_bug.cgi?id=201505
+
+ Reviewed by Žan Doberšek.
+
+ This happens because eglCreateWindowSurface() is called twice for the same window when not using the WPE
+ renderer. New versions of Mesa fail the second time with a EGL_BAD_ALLOC.
+
+ * platform/graphics/egl/GLContextEGL.cpp:
+ (WebCore::GLContextEGL::createWindowContext): Check surface is nullptr before falling back to use
+ eglCreateWindowSurface().
+
2019-09-17 Jiewen Tan <[email protected]>
[WebAuthn] Use WebPreferences instead of RuntimeEnabledFeatures in UIProcess
Modified: trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp (249950 => 249951)
--- trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp 2019-09-17 09:03:40 UTC (rev 249950)
+++ trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp 2019-09-17 10:12:26 UTC (rev 249951)
@@ -188,7 +188,8 @@
if (platformDisplay.type() == PlatformDisplay::Type::WPE)
surface = createWindowSurfaceWPE(display, config, window);
#else
- surface = eglCreateWindowSurface(display, config, static_cast<EGLNativeWindowType>(window), nullptr);
+ if (surface == EGL_NO_SURFACE)
+ surface = eglCreateWindowSurface(display, config, static_cast<EGLNativeWindowType>(window), nullptr);
#endif
if (surface == EGL_NO_SURFACE) {
WTFLogAlways("Cannot create EGL window surface: %s\n", lastErrorString());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes