Title: [260242] trunk/Source/WebCore
Revision
260242
Author
[email protected]
Date
2020-04-17 02:35:49 -0700 (Fri, 17 Apr 2020)

Log Message

Unreviewed build fix after r260123

No new tests needed.

* platform/gtk/CursorGtk.cpp:
(WebCore::createCustomCursor): Pass missing pixel buffer data pointer to gdk_memory_texture_new().

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (260241 => 260242)


--- trunk/Source/WebCore/ChangeLog	2020-04-17 08:40:52 UTC (rev 260241)
+++ trunk/Source/WebCore/ChangeLog	2020-04-17 09:35:49 UTC (rev 260242)
@@ -1,3 +1,12 @@
+2020-04-17  Adrian Perez de Castro  <[email protected]>
+
+        Unreviewed build fix after r260123
+
+        No new tests needed.
+
+        * platform/gtk/CursorGtk.cpp:
+        (WebCore::createCustomCursor): Pass missing pixel buffer data pointer to gdk_memory_texture_new().
+
 2020-04-17  Youenn Fablet  <[email protected]>
 
         Make use of WeakHashSet for MediaStreamTrackPrivate and RealtimeMediaSource observers

Modified: trunk/Source/WebCore/platform/gtk/CursorGtk.cpp (260241 => 260242)


--- trunk/Source/WebCore/platform/gtk/CursorGtk.cpp	2020-04-17 08:40:52 UTC (rev 260241)
+++ trunk/Source/WebCore/platform/gtk/CursorGtk.cpp	2020-04-17 09:35:49 UTC (rev 260242)
@@ -63,7 +63,8 @@
 
 #if USE(GTK4)
     ASSERT(cairo_image_surface_get_format(surface.get()) == CAIRO_FORMAT_ARGB32);
-    auto texture = adoptGRef(gdk_memory_texture_new(cairo_image_surface_get_width(surface.get()), cairo_image_surface_get_height(surface.get()), GDK_MEMORY_A8R8G8B8_PREMULTIPLIED, cairo_image_surface_get_stride(surface.get())));
+    auto texture = adoptGRef(gdk_memory_texture_new(cairo_image_surface_get_width(surface.get()), cairo_image_surface_get_height(surface.get()),
+        GDK_MEMORY_A8R8G8B8_PREMULTIPLIED, cairo_image_surface_get_data(surface.get()), cairo_image_surface_get_stride(surface.get())));
     return adoptGRef(gdk_cursor_new_from_texture(texture.get(), effectiveHotSpot.x(), effectiveHotSpot.y(), fallbackCursor().get()));
 #else
     return adoptGRef(gdk_cursor_new_from_surface(gdk_display_get_default(), surface.get(), effectiveHotSpot.x(), effectiveHotSpot.y()));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to