Title: [264216] trunk/Source/WebKit
- Revision
- 264216
- Author
- [email protected]
- Date
- 2020-07-10 05:47:51 -0700 (Fri, 10 Jul 2020)
Log Message
[GTK] Flush the cairo surface after painting when using software
https://bugs.webkit.org/show_bug.cgi?id=214177
Reviewed by Adrian Perez de Castro.
This is similar to bug #210636 but it happens under wayland when using GTK4. It's good idea to flush always
after painting in any case, so we do ity in case of GTK3 as well.
* UIProcess/gtk/AcceleratedBackingStoreWayland.cpp:
(WebKit::AcceleratedBackingStoreWayland::snapshot): Call cairo_surface_flush() after drawing.
(WebKit::AcceleratedBackingStoreWayland::paint): Ditto.
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (264215 => 264216)
--- trunk/Source/WebKit/ChangeLog 2020-07-10 11:08:12 UTC (rev 264215)
+++ trunk/Source/WebKit/ChangeLog 2020-07-10 12:47:51 UTC (rev 264216)
@@ -1,5 +1,19 @@
2020-07-10 Carlos Garcia Campos <[email protected]>
+ [GTK] Flush the cairo surface after painting when using software
+ https://bugs.webkit.org/show_bug.cgi?id=214177
+
+ Reviewed by Adrian Perez de Castro.
+
+ This is similar to bug #210636 but it happens under wayland when using GTK4. It's good idea to flush always
+ after painting in any case, so we do ity in case of GTK3 as well.
+
+ * UIProcess/gtk/AcceleratedBackingStoreWayland.cpp:
+ (WebKit::AcceleratedBackingStoreWayland::snapshot): Call cairo_surface_flush() after drawing.
+ (WebKit::AcceleratedBackingStoreWayland::paint): Ditto.
+
+2020-07-10 Carlos Garcia Campos <[email protected]>
+
Unreviewed. Fix GTK4 build
* UIProcess/API/gtk/WebKitWebViewGtk.cpp:
Modified: trunk/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreWayland.cpp (264215 => 264216)
--- trunk/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreWayland.cpp 2020-07-10 11:08:12 UTC (rev 264215)
+++ trunk/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreWayland.cpp 2020-07-10 12:47:51 UTC (rev 264216)
@@ -559,6 +559,8 @@
cairo_set_source_surface(cr.get(), m_surface.get(), 0, 0);
cairo_set_operator(cr.get(), CAIRO_OPERATOR_OVER);
cairo_paint(cr.get());
+
+ cairo_surface_flush(m_surface.get());
}
#else
bool AcceleratedBackingStoreWayland::paint(cairo_t* cr, const IntRect& clipRect)
@@ -616,6 +618,8 @@
cairo_restore(cr);
+ cairo_surface_flush(m_surface.get());
+
return true;
}
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes