Title: [212461] trunk/Source/WTF
Revision
212461
Author
[email protected]
Date
2017-02-16 13:23:33 -0800 (Thu, 16 Feb 2017)

Log Message

Remove EFL from WTF
https://bugs.webkit.org/show_bug.cgi?id=168452

Reviewed by Alex Christensen.

* wtf/CurrentTime.cpp:
* wtf/DisallowCType.h:
* wtf/FeatureDefines.h:
* wtf/MainThread.cpp:
* wtf/MainThread.h:
* wtf/Platform.h:
* wtf/RunLoop.h:
* wtf/WorkQueue.h:
* wtf/efl/DispatchQueueEfl.cpp: Removed.
* wtf/efl/DispatchQueueEfl.h: Removed.
* wtf/efl/DispatchQueueWorkItemEfl.h: Removed.
* wtf/efl/EflTypedefs.h: Removed.
* wtf/efl/MainThreadEfl.cpp: Removed.
* wtf/efl/RunLoopEfl.cpp: Removed.
* wtf/efl/UniquePtrEfl.h: Removed.
* wtf/efl/WorkQueueEfl.cpp: Removed.

Modified Paths

Removed Paths

  • trunk/Source/WTF/wtf/efl/

Diff

Modified: trunk/Source/WTF/ChangeLog (212460 => 212461)


--- trunk/Source/WTF/ChangeLog	2017-02-16 21:10:29 UTC (rev 212460)
+++ trunk/Source/WTF/ChangeLog	2017-02-16 21:23:33 UTC (rev 212461)
@@ -1,3 +1,27 @@
+2017-02-16  Anders Carlsson  <[email protected]>
+
+        Remove EFL from WTF
+        https://bugs.webkit.org/show_bug.cgi?id=168452
+
+        Reviewed by Alex Christensen.
+
+        * wtf/CurrentTime.cpp:
+        * wtf/DisallowCType.h:
+        * wtf/FeatureDefines.h:
+        * wtf/MainThread.cpp:
+        * wtf/MainThread.h:
+        * wtf/Platform.h:
+        * wtf/RunLoop.h:
+        * wtf/WorkQueue.h:
+        * wtf/efl/DispatchQueueEfl.cpp: Removed.
+        * wtf/efl/DispatchQueueEfl.h: Removed.
+        * wtf/efl/DispatchQueueWorkItemEfl.h: Removed.
+        * wtf/efl/EflTypedefs.h: Removed.
+        * wtf/efl/MainThreadEfl.cpp: Removed.
+        * wtf/efl/RunLoopEfl.cpp: Removed.
+        * wtf/efl/UniquePtrEfl.h: Removed.
+        * wtf/efl/WorkQueueEfl.cpp: Removed.
+
 2017-02-13  Alex Christensen  <[email protected]>
 
         URLs with an invalid IPv4 address should be invalid

Modified: trunk/Source/WTF/wtf/CurrentTime.cpp (212460 => 212461)


--- trunk/Source/WTF/wtf/CurrentTime.cpp	2017-02-16 21:10:29 UTC (rev 212460)
+++ trunk/Source/WTF/wtf/CurrentTime.cpp	2017-02-16 21:23:33 UTC (rev 212461)
@@ -52,14 +52,11 @@
 #include <math.h>
 #include <stdint.h>
 #include <time.h>
-
-#elif PLATFORM(EFL)
-#include <Ecore.h>
 #else
 #include <sys/time.h>
 #endif
 
-#if USE(GLIB) && !PLATFORM(EFL)
+#if USE(GLIB)
 #include <glib.h>
 #endif
 
@@ -222,7 +219,7 @@
 
 #endif // USE(QUERY_PERFORMANCE_COUNTER)
 
-#elif USE(GLIB) && !PLATFORM(EFL)
+#elif USE(GLIB)
 
 // Note: GTK on Windows will pick up the PLATFORM(WIN) implementation above which provides
 // better accuracy compared with Windows implementation of g_get_current_time:
@@ -235,13 +232,6 @@
     return static_cast<double>(now.tv_sec) + static_cast<double>(now.tv_usec / 1000000.0);
 }
 
-#elif PLATFORM(EFL)
-
-double currentTime()
-{
-    return ecore_time_unix_get();
-}
-
 #else
 
 double currentTime()
@@ -253,17 +243,10 @@
 
 #endif
 
-#if PLATFORM(EFL)
+#if USE(GLIB)
 
 double monotonicallyIncreasingTime()
 {
-    return ecore_time_get();
-}
-
-#elif USE(GLIB)
-
-double monotonicallyIncreasingTime()
-{
     return static_cast<double>(g_get_monotonic_time() / 1000000.0);
 }
 

Modified: trunk/Source/WTF/wtf/DisallowCType.h (212460 => 212461)


--- trunk/Source/WTF/wtf/DisallowCType.h	2017-02-16 21:10:29 UTC (rev 212460)
+++ trunk/Source/WTF/wtf/DisallowCType.h	2017-02-16 21:23:33 UTC (rev 212461)
@@ -40,7 +40,7 @@
 // are used from wx headers. On GTK+ for Mac many GTK+ files include <libintl.h>
 // or <glib/gi18n-lib.h>, which in turn include <xlocale/_ctype.h> which uses
 // isacii(). 
-#if !(OS(DARWIN) && PLATFORM(GTK)) && !PLATFORM(EFL) && !defined(_LIBCPP_VERSION) && defined(__GLIBC__)
+#if !(OS(DARWIN) && PLATFORM(GTK)) && !defined(_LIBCPP_VERSION) && defined(__GLIBC__)
 
 #include <ctype.h>
 

Modified: trunk/Source/WTF/wtf/FeatureDefines.h (212460 => 212461)


--- trunk/Source/WTF/wtf/FeatureDefines.h	2017-02-16 21:10:29 UTC (rev 212460)
+++ trunk/Source/WTF/wtf/FeatureDefines.h	2017-02-16 21:23:33 UTC (rev 212461)
@@ -322,10 +322,6 @@
 
 #endif /* PLATFORM(WIN_CAIRO) */
 
-/* --------- EFL port (Unix) --------- */
-#if PLATFORM(EFL)
-#endif /* PLATFORM(EFL) */
-
 /* --------- Gtk port (Unix, Windows, Mac) --------- */
 #if PLATFORM(GTK)
 #if !defined(ENABLE_KEYBOARD_KEY_ATTRIBUTE)

Modified: trunk/Source/WTF/wtf/MainThread.cpp (212460 => 212461)


--- trunk/Source/WTF/wtf/MainThread.cpp	2017-02-16 21:10:29 UTC (rev 212460)
+++ trunk/Source/WTF/wtf/MainThread.cpp	2017-02-16 21:23:33 UTC (rev 212461)
@@ -41,7 +41,7 @@
 namespace WTF {
 
 static bool callbacksPaused; // This global variable is only accessed from main thread.
-#if !OS(DARWIN) || PLATFORM(EFL) || PLATFORM(GTK)
+#if !OS(DARWIN) || PLATFORM(GTK)
 static ThreadIdentifier mainThreadIdentifier;
 #endif
 
@@ -53,7 +53,7 @@
     return functionQueue;
 }
 
-#if !OS(DARWIN) || PLATFORM(EFL) || PLATFORM(GTK)
+#if !OS(DARWIN) || PLATFORM(GTK)
 
 void initializeMainThread()
 {
@@ -176,7 +176,7 @@
         scheduleDispatchFunctionsOnMainThread();
 }
 
-#if !OS(DARWIN) || PLATFORM(EFL) || PLATFORM(GTK)
+#if !OS(DARWIN) || PLATFORM(GTK)
 bool isMainThread()
 {
     return currentThread() == mainThreadIdentifier;

Modified: trunk/Source/WTF/wtf/MainThread.h (212460 => 212461)


--- trunk/Source/WTF/wtf/MainThread.h	2017-02-16 21:10:29 UTC (rev 212460)
+++ trunk/Source/WTF/wtf/MainThread.h	2017-02-16 21:23:33 UTC (rev 212461)
@@ -86,7 +86,7 @@
 void scheduleDispatchFunctionsOnMainThread();
 void dispatchFunctionsFromMainThread();
 
-#if OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK)
+#if OS(DARWIN) && !PLATFORM(GTK)
 #if !USE(WEB_THREAD)
 // This version of initializeMainThread sets up the main thread as corresponding
 // to the process's main thread, and not necessarily the thread that calls this

Modified: trunk/Source/WTF/wtf/Platform.h (212460 => 212461)


--- trunk/Source/WTF/wtf/Platform.h	2017-02-16 21:10:29 UTC (rev 212460)
+++ trunk/Source/WTF/wtf/Platform.h	2017-02-16 21:23:33 UTC (rev 212461)
@@ -441,15 +441,12 @@
 #endif
 
 /* FIXME: these are all mixes of OS, operating environment and policy choices. */
-/* PLATFORM(EFL) */
 /* PLATFORM(GTK) */
 /* PLATFORM(MAC) */
 /* PLATFORM(IOS) */
 /* PLATFORM(IOS_SIMULATOR) */
 /* PLATFORM(WIN) */
-#if defined(BUILDING_EFL__)
-#define WTF_PLATFORM_EFL 1
-#elif defined(BUILDING_GTK__)
+#if defined(BUILDING_GTK__)
 #define WTF_PLATFORM_GTK 1
 #elif defined(BUILDING_JSCONLY__)
 /* JSCOnly does not provide PLATFORM() macro */
@@ -495,7 +492,7 @@
 #define USE_CA 1
 #endif
 
-#if PLATFORM(GTK) || PLATFORM(EFL)
+#if PLATFORM(GTK)
 #define USE_CAIRO 1
 #define USE_GLIB 1
 #define USE_FREETYPE 1
@@ -504,9 +501,7 @@
 #define USE_WEBP 1
 #endif
 
-#if PLATFORM(EFL)
-#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_38
-#elif PLATFORM(GTK)
+#if PLATFORM(GTK)
 #define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_36
 #endif
 
@@ -613,7 +608,7 @@
 #endif
 
 #if !defined(HAVE_ACCESSIBILITY)
-#if PLATFORM(COCOA) || PLATFORM(WIN) || PLATFORM(GTK) || PLATFORM(EFL)
+#if PLATFORM(COCOA) || PLATFORM(WIN) || PLATFORM(GTK)
 #define HAVE_ACCESSIBILITY 1
 #endif
 #endif /* !defined(HAVE_ACCESSIBILITY) */
@@ -714,7 +709,7 @@
 /* If possible, try to enable a disassembler. This is optional. We proceed in two
    steps: first we try to find some disassembler that we can use, and then we
    decide if the high-level disassembler API can be enabled. */
-#if !defined(USE_UDIS86) && ENABLE(JIT) && ((OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK)) || (OS(LINUX) && (PLATFORM(EFL) || PLATFORM(GTK)))) \
+#if !defined(USE_UDIS86) && ENABLE(JIT) && ((OS(DARWIN) && !PLATFORM(GTK)) || (OS(LINUX) && PLATFORM(GTK))) \
     && (CPU(X86) || CPU(X86_64))
 #define USE_UDIS86 1
 #endif
@@ -745,7 +740,7 @@
 #define ENABLE_DFG_JIT 1
 #endif
 /* Enable the DFG JIT on ARMv7.  Only tested on iOS and Qt/GTK+ Linux. */
-#if (CPU(ARM_THUMB2) || CPU(ARM64)) && (PLATFORM(IOS) || PLATFORM(GTK) || PLATFORM(EFL))
+#if (CPU(ARM_THUMB2) || CPU(ARM64)) && (PLATFORM(IOS) || PLATFORM(GTK))
 #define ENABLE_DFG_JIT 1
 #endif
 /* Enable the DFG JIT on ARM and MIPS. */
@@ -782,7 +777,7 @@
  * In configurations other than Windows and Darwin, because layout of mcontext_t depends on standard libraries (like glibc),
  * sampling profiler is enabled if WebKit uses pthreads and glibc. */
 #if !defined(ENABLE_SAMPLING_PROFILER)
-#if (OS(DARWIN) || OS(WINDOWS) || PLATFORM(GTK) || PLATFORM(EFL)) && ENABLE(JIT)
+#if (OS(DARWIN) || OS(WINDOWS) || PLATFORM(GTK)) && ENABLE(JIT)
 #define ENABLE_SAMPLING_PROFILER 1
 #else
 #define ENABLE_SAMPLING_PROFILER 0
@@ -926,7 +921,7 @@
 
 /* CSS Selector JIT Compiler */
 #if !defined(ENABLE_CSS_SELECTOR_JIT)
-#if (CPU(X86_64) || CPU(ARM64) || (CPU(ARM_THUMB2) && PLATFORM(IOS))) && ENABLE(JIT) && (OS(DARWIN) || PLATFORM(GTK) || PLATFORM(EFL))
+#if (CPU(X86_64) || CPU(ARM64) || (CPU(ARM_THUMB2) && PLATFORM(IOS))) && ENABLE(JIT) && (OS(DARWIN) || PLATFORM(GTK))
 #define ENABLE_CSS_SELECTOR_JIT 1
 #else
 #define ENABLE_CSS_SELECTOR_JIT 0
@@ -981,11 +976,7 @@
 #include <wtf/glib/GTypedefs.h>
 #endif
 
-#if PLATFORM(EFL)
-#include <wtf/efl/EflTypedefs.h>
-#endif
-
-/* FIXME: This define won't be needed once #27551 is fully landed. However, 
+/* FIXME: This define won't be needed once #27551 is fully landed. However,
    since most ports try to support sub-project independence, adding new headers
    to WTF causes many ports to break, and so this way we can address the build
    breakages one port at a time. */
@@ -997,7 +988,7 @@
 #define USE_EXPORT_MACROS_FOR_TESTING 1
 #endif
 
-#if PLATFORM(GTK) || PLATFORM(EFL)
+#if PLATFORM(GTK)
 #define USE_UNIX_DOMAIN_SOCKETS 1
 #endif
 
@@ -1077,7 +1068,7 @@
 
 #define USE_GRAMMAR_CHECKING 1
 
-#if PLATFORM(COCOA) || PLATFORM(EFL) || PLATFORM(GTK)
+#if PLATFORM(COCOA) || PLATFORM(GTK)
 #define USE_UNIFIED_TEXT_CHECKING 1
 #endif
 #if PLATFORM(MAC)
@@ -1114,7 +1105,7 @@
 #define ENABLE_RESOURCE_USAGE 1
 #endif
 
-#if PLATFORM(GTK) || PLATFORM(EFL)
+#if PLATFORM(GTK)
 #undef ENABLE_OPENTYPE_VERTICAL
 #define ENABLE_OPENTYPE_VERTICAL 1
 #define ENABLE_CSS3_TEXT_DECORATION_SKIP_INK 1
@@ -1184,7 +1175,7 @@
 /* Use Windows message pump abstraction.
  * Even if the port is AppleWin, we use the Windows message pump system for the event loop,
  * so that USE(WINDOWS_EVENT_LOOP) && USE(CF) can be true.
- * And PLATFORM(WIN), PLATFORM(EFL) and PLATFORM(GTK) are exclusive. If the port is GTK,
+ * And PLATFORM(WIN) and PLATFORM(GTK) are exclusive. If the port is GTK,
  * PLATFORM(WIN) should be false. And in that case, GLib's event loop is used.
  */
 #define USE_WINDOWS_EVENT_LOOP 1
@@ -1191,11 +1182,6 @@
 #elif PLATFORM(COCOA)
 /* OS X and IOS. Use CoreFoundation & GCD abstraction. */
 #define USE_COCOA_EVENT_LOOP 1
-#elif PLATFORM(EFL)
-/* EFL port uses GLib. But it uses its own event loop abstraction.
- * Thus, USE(EFL_EVENT_LOOP) && USE(GLIB) can be true.
- */
-#define USE_EFL_EVENT_LOOP 1
 #elif USE(GLIB)
 /* Use GLib's event loop abstraction. Primarily GTK port uses it. */
 #define USE_GLIB_EVENT_LOOP 1

Modified: trunk/Source/WTF/wtf/RunLoop.h (212460 => 212461)


--- trunk/Source/WTF/wtf/RunLoop.h	2017-02-16 21:10:29 UTC (rev 212460)
+++ trunk/Source/WTF/wtf/RunLoop.h	2017-02-16 21:23:33 UTC (rev 212461)
@@ -40,11 +40,6 @@
 #include <wtf/glib/GRefPtr.h>
 #endif
 
-#if USE(EFL_EVENT_LOOP)
-#include <Ecore.h>
-#include <wtf/efl/UniquePtrEfl.h>
-#endif
-
 namespace WTF {
 
 class RunLoop : public FunctionDispatcher {
@@ -114,10 +109,6 @@
 #elif USE(COCOA_EVENT_LOOP)
         static void timerFired(CFRunLoopTimerRef, void*);
         RetainPtr<CFRunLoopTimerRef> m_timer;
-#elif USE(EFL_EVENT_LOOP)
-        static bool timerFired(void* data);
-        Ecore_Timer* m_timer;
-        bool m_isRepeating;
 #elif USE(GLIB_EVENT_LOOP)
         void updateReadyTime();
         GRefPtr<GSource> m_source;
@@ -170,14 +161,6 @@
     static void performWork(void*);
     RetainPtr<CFRunLoopRef> m_runLoop;
     RetainPtr<CFRunLoopSourceRef> m_runLoopSource;
-#elif USE(EFL_EVENT_LOOP)
-    Mutex m_pipeLock;
-    EflUniquePtr<Ecore_Pipe> m_pipe;
-
-    Mutex m_wakeUpEventRequestedLock;
-    bool m_wakeUpEventRequested;
-
-    static void wakeUpEvent(void* data, void*, unsigned);
 #elif USE(GLIB_EVENT_LOOP)
     GRefPtr<GMainContext> m_mainContext;
     Vector<GRefPtr<GMainLoop>> m_mainLoops;

Modified: trunk/Source/WTF/wtf/WorkQueue.h (212460 => 212461)


--- trunk/Source/WTF/wtf/WorkQueue.h	2017-02-16 21:10:29 UTC (rev 212460)
+++ trunk/Source/WTF/wtf/WorkQueue.h	2017-02-16 21:23:33 UTC (rev 212461)
@@ -38,10 +38,6 @@
 #include <dispatch/dispatch.h>
 #endif
 
-#if USE(EFL_EVENT_LOOP)
-#include <DispatchQueueEfl.h>
-#endif
-
 #if USE(WINDOWS_EVENT_LOOP)
 #include <wtf/Vector.h>
 #endif
@@ -75,10 +71,7 @@
 
     WTF_EXPORT_PRIVATE static void concurrentApply(size_t iterations, const std::function<void (size_t index)>&);
 
-#if USE(EFL_EVENT_LOOP)
-    void registerSocketEventHandler(int, std::function<void ()>);
-    void unregisterSocketEventHandler(int);
-#elif USE(COCOA_EVENT_LOOP)
+#if USE(COCOA_EVENT_LOOP)
     dispatch_queue_t dispatchQueue() const { return m_dispatchQueue; }
 #elif USE(GLIB_EVENT_LOOP) || USE(GENERIC_EVENT_LOOP)
     RunLoop& runLoop() const { return *m_runLoop; }
@@ -99,9 +92,7 @@
     void performWorkOnRegisteredWorkThread();
 #endif
 
-#if USE(EFL_EVENT_LOOP)
-    RefPtr<DispatchQueue> m_dispatchQueue;
-#elif USE(COCOA_EVENT_LOOP)
+#if USE(COCOA_EVENT_LOOP)
     static void executeFunction(void*);
     dispatch_queue_t m_dispatchQueue;
 #elif USE(WINDOWS_EVENT_LOOP)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to