[GTK] Build with USE_WPE_RENDERER=No fails with undefined EGL_WAYLAND_BUFFER_WL
authoremilio@crisal.io <emilio@crisal.io@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Dec 2019 15:56:18 +0000 (15:56 +0000)
committeremilio@crisal.io <emilio@crisal.io@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Dec 2019 15:56:18 +0000 (15:56 +0000)
https://bugs.webkit.org/show_bug.cgi?id=205250

Reviewed by Carlos Garcia Campos.

Define the enum if not present.

No new tests, just a build fix.

* UIProcess/gtk/WaylandCompositor.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@253553 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/gtk/WaylandCompositor.cpp

index 54844a2..e9a6e81 100644 (file)
@@ -1,3 +1,16 @@
+2019-12-16  Emilio Cobos Ãlvarez  <emilio@crisal.io>
+
+        [GTK] Build with USE_WPE_RENDERER=No fails with undefined EGL_WAYLAND_BUFFER_WL
+        https://bugs.webkit.org/show_bug.cgi?id=205250
+
+        Reviewed by Carlos Garcia Campos.
+
+        Define the enum if not present.
+
+        No new tests, just a build fix.
+
+        * UIProcess/gtk/WaylandCompositor.cpp:
+
 2019-12-16  youenn fablet  <youenn@apple.com>
 
         Reset cached getUserMedia queries when calling stopMediaCapture
index 8a14c55..c354099 100644 (file)
@@ -58,6 +58,10 @@ typedef EGLBoolean (*PFNEGLBINDWAYLANDDISPLAYWL) (EGLDisplay, struct wl_display*
 typedef EGLBoolean (*PFNEGLUNBINDWAYLANDDISPLAYWL) (EGLDisplay, struct wl_display*);
 #endif
 
+#if !defined(EGL_WAYLAND_BUFFER_WL)
+#define EGL_WAYLAND_BUFFER_WL 0x31D5
+#endif
+
 #if !defined(PFNEGLQUERYWAYLANDBUFFERWL)
 typedef EGLBoolean (*PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay, struct wl_resource*, EGLint attribute, EGLint* value);
 #endif