[GTK][WPE] Add about:gpu
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Sep 2019 12:06:23 +0000 (12:06 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Sep 2019 12:06:23 +0000 (12:06 +0000)
commit1ffa6d51d707ea203c82dcdeaac3b9350b5e5d58
tree888bae67c9c35613c2c84b395efe7ab6a5500183
parentd20eb31582de80c4349247e3be01e8c837b0145a
[GTK][WPE] Add about:gpu
https://bugs.webkit.org/show_bug.cgi?id=202305

Reviewed by Žan Doberšek.

.:

Add SVN_REVISION definition to the build.

* Source/cmake/OptionsGTK.cmake:
* Source/cmake/OptionsWPE.cmake:

Source/WebKit:

A builtin protocol handler to show information about hardware acceleration. This is useful information we need
from people reporting issues in accelerated compositing mode.

* SourcesGTK.txt:
* SourcesWPE.txt:
* UIProcess/API/glib/WebKitProtocolHandler.cpp: Added.
(WebKit::WebKitProtocolHandler::WebKitProtocolHandler):
(WebKit::WebKitProtocolHandler::handleRequest):
(WebKit::webkitPortName):
(WebKit::hardwareAccelerationPolicy):
(WebKit::webGLEnabled):
(WebKit::openGLAPI):
(WebKit::nativeInterface):
(WebKit::WebKitProtocolHandler::handleGPU):
* UIProcess/API/glib/WebKitProtocolHandler.h: Added.
* UIProcess/API/glib/WebKitWebContext.cpp:
(webkitWebContextConstructed):

Tools:

Allow to use about:gpu in MiniBrowser. Add a script to get the current svn revision.

* MiniBrowser/gtk/BrowserTab.c:
(getInternalURI):
* MiniBrowser/gtk/main.c:
(argumentToURL):
* MiniBrowser/wpe/main.cpp:
(main):
* glib/svn-revision: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250517 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
ChangeLog
Source/WebKit/ChangeLog
Source/WebKit/SourcesGTK.txt
Source/WebKit/SourcesWPE.txt
Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp [new file with mode: 0644]
Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.h [new file with mode: 0644]
Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
Source/cmake/OptionsGTK.cmake
Source/cmake/OptionsWPE.cmake
Tools/ChangeLog
Tools/MiniBrowser/gtk/BrowserTab.c
Tools/MiniBrowser/gtk/main.c
Tools/MiniBrowser/wpe/main.cpp
Tools/glib/svn-revision [new file with mode: 0755]