Prefer eglGetPlatformDisplay to eglGetDisplay
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Oct 2016 13:18:09 +0000 (13:18 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Oct 2016 13:18:09 +0000 (13:18 +0000)
commit99e14a99f941a87fdb87d7db5794a79c4c3710a8
tree8f43259171d41f2007da18ccc84f60bd3920613a
parentd650d519fb6502ee32d01102dc3bff6a569fa7bf
Prefer eglGetPlatformDisplay to eglGetDisplay
https://bugs.webkit.org/show_bug.cgi?id=163333

Patch by Adam Jackson <ajax@redhat.com> on 2016-10-20
Reviewed by Carlos Garcia Campos.

eglGetDisplay forces the implementation to guess what kind of void* it's been handed. Different implementations
do different things, in particular glvnd and Mesa behave differently. Fortunately there exists API to tell EGL
what kind of display it is, so let's use it.

* platform/graphics/wayland/PlatformDisplayWayland.cpp:
(WebCore::PlatformDisplayWayland::initialize):
* platform/graphics/x11/PlatformDisplayX11.cpp:
(WebCore::PlatformDisplayX11::initializeEGLDisplay):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@207616 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp
Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp