Title: [225048] trunk/Tools
Revision
225048
Author
[email protected]
Date
2017-11-20 03:22:30 -0800 (Mon, 20 Nov 2017)

Log Message

Unreviewed. Fix WPE build after r225047.

Remove changes from an old patch committed by mistake in r225047.

* WebKitTestRunner/PlatformWebView.h:
* WebKitTestRunner/wpe/PlatformWebViewWPE.cpp:
(WTR::PlatformWebView::windowSnapshotImage):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (225047 => 225048)


--- trunk/Tools/ChangeLog	2017-11-20 11:03:26 UTC (rev 225047)
+++ trunk/Tools/ChangeLog	2017-11-20 11:22:30 UTC (rev 225048)
@@ -1,5 +1,15 @@
 2017-11-20  Carlos Garcia Campos  <[email protected]>
 
+        Unreviewed. Fix WPE build after r225047.
+
+        Remove changes from an old patch committed by mistake in r225047.
+
+        * WebKitTestRunner/PlatformWebView.h:
+        * WebKitTestRunner/wpe/PlatformWebViewWPE.cpp:
+        (WTR::PlatformWebView::windowSnapshotImage):
+
+2017-11-20  Carlos Garcia Campos  <[email protected]>
+
         [WPE] Add run-wpe-tests script to run WPE glib API tests
         https://bugs.webkit.org/show_bug.cgi?id=173772
 

Modified: trunk/Tools/WebKitTestRunner/PlatformWebView.h (225047 => 225048)


--- trunk/Tools/WebKitTestRunner/PlatformWebView.h	2017-11-20 11:03:26 UTC (rev 225047)
+++ trunk/Tools/WebKitTestRunner/PlatformWebView.h	2017-11-20 11:22:30 UTC (rev 225048)
@@ -51,8 +51,9 @@
 typedef GtkWidget* PlatformWindow;
 typedef cairo_surface_t *PlatformImage;
 #elif PLATFORM(WPE)
+class HeadlessViewBackend;
 typedef WKViewRef PlatformWKView;
-typedef void* PlatformWindow;
+typedef HeadlessViewBackend* PlatformWindow;
 typedef cairo_surface_t* PlatformImage;
 #endif
 

Modified: trunk/Tools/WebKitTestRunner/wpe/PlatformWebViewWPE.cpp (225047 => 225048)


--- trunk/Tools/WebKitTestRunner/wpe/PlatformWebViewWPE.cpp	2017-11-20 11:03:26 UTC (rev 225047)
+++ trunk/Tools/WebKitTestRunner/wpe/PlatformWebViewWPE.cpp	2017-11-20 11:22:30 UTC (rev 225048)
@@ -26,6 +26,7 @@
 #include "config.h"
 #include "PlatformWebView.h"
 
+#include "HeadlessViewBackend.h"
 #include <WebKit/WKImageCairo.h>
 #include <cairo.h>
 #include <cstdio>
@@ -115,7 +116,8 @@
         RunLoop::main().run();
     }
 
-    return WKViewCreateSnapshot(m_view);
+    cairo_surface_t* imageSurface = m_window->createSnapshot();
+    return imageSurface;
 }
 
 void PlatformWebView::changeWindowScaleIfNeeded(float)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to