Title: [217925] trunk
Revision
217925
Author
[email protected]
Date
2017-06-07 23:48:22 -0700 (Wed, 07 Jun 2017)

Log Message

[WPE] Enable resource usage
https://bugs.webkit.org/show_bug.cgi?id=173054

Reviewed by Žan Doberšek.

.:

Add private option for resource usage enabled by default.

* Source/cmake/OptionsWPE.cmake:

Source/WebCore:

Add resource usage linux files to the compilation.

* PlatformWPE.cmake:

Source/WebKit2:

Enable/disable the resources overlay with CTRL + Shift + G.

* UIProcess/API/wpe/WPEView.cpp:
(WKWPE::m_compositingManagerProxy):

Modified Paths

Diff

Modified: trunk/ChangeLog (217924 => 217925)


--- trunk/ChangeLog	2017-06-08 06:46:21 UTC (rev 217924)
+++ trunk/ChangeLog	2017-06-08 06:48:22 UTC (rev 217925)
@@ -1,5 +1,16 @@
 2017-06-07  Carlos Garcia Campos  <[email protected]>
 
+        [WPE] Enable resource usage
+        https://bugs.webkit.org/show_bug.cgi?id=173054
+
+        Reviewed by Žan Doberšek.
+
+        Add private option for resource usage enabled by default.
+
+        * Source/cmake/OptionsWPE.cmake:
+
+2017-06-07  Carlos Garcia Campos  <[email protected]>
+
         Remove legacy INSPECTOR_SERVER implementation
         https://bugs.webkit.org/show_bug.cgi?id=172966
 

Modified: trunk/Source/WebCore/ChangeLog (217924 => 217925)


--- trunk/Source/WebCore/ChangeLog	2017-06-08 06:46:21 UTC (rev 217924)
+++ trunk/Source/WebCore/ChangeLog	2017-06-08 06:48:22 UTC (rev 217925)
@@ -1,3 +1,14 @@
+2017-06-07  Carlos Garcia Campos  <[email protected]>
+
+        [WPE] Enable resource usage
+        https://bugs.webkit.org/show_bug.cgi?id=173054
+
+        Reviewed by Žan Doberšek.
+
+        Add resource usage linux files to the compilation.
+
+        * PlatformWPE.cmake:
+
 2017-06-07  Jer Noble  <[email protected]>
 
         [Web Audio] createScriptProcessor throws IndexSizeError for valid arguments

Modified: trunk/Source/WebCore/PlatformWPE.cmake (217924 => 217925)


--- trunk/Source/WebCore/PlatformWPE.cmake	2017-06-08 06:46:21 UTC (rev 217924)
+++ trunk/Source/WebCore/PlatformWPE.cmake	2017-06-08 06:48:22 UTC (rev 217925)
@@ -51,6 +51,9 @@
     loader/soup/CachedRawResourceSoup.cpp
     loader/soup/SubresourceLoaderSoup.cpp
 
+    page/linux/ResourceUsageOverlayLinux.cpp
+    page/linux/ResourceUsageThreadLinux.cpp
+
     page/scrolling/ScrollingStateStickyNode.cpp
     page/scrolling/ScrollingThread.cpp
     page/scrolling/ScrollingTreeNode.cpp

Modified: trunk/Source/WebKit2/ChangeLog (217924 => 217925)


--- trunk/Source/WebKit2/ChangeLog	2017-06-08 06:46:21 UTC (rev 217924)
+++ trunk/Source/WebKit2/ChangeLog	2017-06-08 06:48:22 UTC (rev 217925)
@@ -1,5 +1,17 @@
 2017-06-07  Carlos Garcia Campos  <[email protected]>
 
+        [WPE] Enable resource usage
+        https://bugs.webkit.org/show_bug.cgi?id=173054
+
+        Reviewed by Žan Doberšek.
+
+        Enable/disable the resources overlay with CTRL + Shift + G.
+
+        * UIProcess/API/wpe/WPEView.cpp:
+        (WKWPE::m_compositingManagerProxy):
+
+2017-06-07  Carlos Garcia Campos  <[email protected]>
+
         Remove legacy INSPECTOR_SERVER implementation
         https://bugs.webkit.org/show_bug.cgi?id=172966
 

Modified: trunk/Source/WebKit2/UIProcess/API/wpe/WPEView.cpp (217924 => 217925)


--- trunk/Source/WebKit2/UIProcess/API/wpe/WPEView.cpp	2017-06-08 06:46:21 UTC (rev 217924)
+++ trunk/Source/WebKit2/UIProcess/API/wpe/WPEView.cpp	2017-06-08 06:48:22 UTC (rev 217925)
@@ -89,6 +89,14 @@
         [](void* data, struct wpe_input_keyboard_event* event)
         {
             auto& view = *reinterpret_cast<View*>(data);
+            if (event->pressed
+                && event->modifiers & wpe_input_keyboard_modifier_control
+                && event->modifiers & wpe_input_keyboard_modifier_shift
+                && event->keyCode == 'G') {
+                auto& preferences = view.page().preferences();
+                preferences.setResourceUsageOverlayVisible(!preferences.resourceUsageOverlayVisible());
+                return;
+            }
             view.page().handleKeyboardEvent(WebKit::NativeWebKeyboardEvent(event));
         },
         // handle_pointer_event

Modified: trunk/Source/cmake/OptionsWPE.cmake (217924 => 217925)


--- trunk/Source/cmake/OptionsWPE.cmake	2017-06-08 06:46:21 UTC (rev 217924)
+++ trunk/Source/cmake/OptionsWPE.cmake	2017-06-08 06:48:22 UTC (rev 217925)
@@ -36,6 +36,12 @@
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBGL PUBLIC ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_TIMING PUBLIC ON)
 
+if (CMAKE_SYSTEM_NAME MATCHES "Linux")
+    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_RESOURCE_USAGE PRIVATE ON)
+else ()
+    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_RESOURCE_USAGE PRIVATE OFF)
+endif ()
+
 WEBKIT_OPTION_DEFINE(USE_GSTREAMER_GL "Whether to enable support for GStreamer GL" PRIVATE OFF)
 
 WEBKIT_OPTION_END()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to