Add USE(LIBWPE) to WebCore
authordon.olmstead@sony.com <don.olmstead@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Nov 2018 16:38:53 +0000 (16:38 +0000)
committerdon.olmstead@sony.com <don.olmstead@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Nov 2018 16:38:53 +0000 (16:38 +0000)
commit93b7317cbc8666ba332358bcdaf35e3bf040101c
treeeecc8b2db44aa4fac48e64704b78a3e99b13b767
parentf1b8a00b474cdec284850ffba0fa49232ddba378
Add USE(LIBWPE) to WebCore
https://bugs.webkit.org/show_bug.cgi?id=191401

Reviewed by Michael Catanzaro.

.:

Exposes USE_LIBWPE to the build.

* Source/cmake/OptionsWPE.cmake:

Source/WebCore:

No new tests. No change in behavior.

Migrates all PLATFORM(WPE) code that calls into wpe_* APIs to
USE(LIBWPE) instead.

Renames classes and files to use the suffix LibWPE.

* PlatformWPE.cmake:
* SourcesWPE.txt:
* platform/Pasteboard.h:
* platform/PasteboardStrategy.h:
* platform/PlatformKeyboardEvent.h:
* platform/PlatformPasteboard.h:
* platform/graphics/PlatformDisplay.cpp:
(WebCore::PlatformDisplay::createPlatformDisplay):
* platform/graphics/PlatformDisplay.h:
* platform/graphics/egl/GLContextEGL.h:
* platform/graphics/egl/GLContextEGLLibWPE.cpp: Renamed from Source/WebCore/platform/graphics/egl/GLContextEGLWPE.cpp.
(WebCore::GLContextEGL::createWPEContext):
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
(WebCore::MediaPlayerPrivateGStreamerBase::ensureGstGLContext):
* platform/graphics/libwpe/PlatformDisplayLibWPE.cpp: Renamed from Source/WebCore/platform/graphics/wpe/PlatformDisplayWPE.cpp.
(WebCore::PlatformDisplayLibWPE::create):
(WebCore::PlatformDisplayLibWPE::PlatformDisplayLibWPE):
(WebCore::PlatformDisplayLibWPE::~PlatformDisplayLibWPE):
(WebCore::PlatformDisplayLibWPE::initialize):
* platform/graphics/libwpe/PlatformDisplayLibWPE.h: Renamed from Source/WebCore/platform/graphics/wpe/PlatformDisplayWPE.h.
* platform/libwpe/PasteboardLibWPE.cpp: Renamed from Source/WebCore/platform/wpe/PasteboardWPE.cpp.
* platform/libwpe/PlatformKeyboardEventLibWPE.cpp: Renamed from Source/WebCore/platform/wpe/PlatformKeyboardEventWPE.cpp.
* platform/libwpe/PlatformPasteboardLibWPE.cpp: Renamed from Source/WebCore/platform/wpe/PlatformPasteboardWPE.cpp.

Source/WebKit:

Rename PlatformDisplayWPE to PlatformDisplayLibWPE.

* WebProcess/WebPage/wpe/AcceleratedSurfaceWPE.cpp:
(WebKit::AcceleratedSurfaceWPE::initialize):
* WebProcess/wpe/WebProcessMainWPE.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238282 268f45cc-cd09-0410-ab3c-d52691b4dbfc
22 files changed:
ChangeLog
Source/WebCore/ChangeLog
Source/WebCore/PlatformWPE.cmake
Source/WebCore/SourcesWPE.txt
Source/WebCore/platform/Pasteboard.h
Source/WebCore/platform/PasteboardStrategy.h
Source/WebCore/platform/PlatformKeyboardEvent.h
Source/WebCore/platform/PlatformPasteboard.h
Source/WebCore/platform/graphics/PlatformDisplay.cpp
Source/WebCore/platform/graphics/PlatformDisplay.h
Source/WebCore/platform/graphics/egl/GLContextEGL.h
Source/WebCore/platform/graphics/egl/GLContextEGLLibWPE.cpp [moved from Source/WebCore/platform/graphics/egl/GLContextEGLWPE.cpp with 93% similarity]
Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
Source/WebCore/platform/graphics/libwpe/PlatformDisplayLibWPE.cpp [moved from Source/WebCore/platform/graphics/wpe/PlatformDisplayWPE.cpp with 78% similarity]
Source/WebCore/platform/graphics/libwpe/PlatformDisplayLibWPE.h [moved from Source/WebCore/platform/graphics/wpe/PlatformDisplayWPE.h with 85% similarity]
Source/WebCore/platform/libwpe/PasteboardLibWPE.cpp [moved from Source/WebCore/platform/wpe/PasteboardWPE.cpp with 99% similarity]
Source/WebCore/platform/libwpe/PlatformKeyboardEventLibWPE.cpp [moved from Source/WebCore/platform/wpe/PlatformKeyboardEventWPE.cpp with 99% similarity]
Source/WebCore/platform/libwpe/PlatformPasteboardLibWPE.cpp [moved from Source/WebCore/platform/wpe/PlatformPasteboardWPE.cpp with 99% similarity]
Source/WebKit/ChangeLog
Source/WebKit/WebProcess/WebPage/wpe/AcceleratedSurfaceWPE.cpp
Source/WebKit/WebProcess/wpe/WebProcessMainWPE.cpp
Source/cmake/OptionsWPE.cmake