Title: [289577] trunk/Source/WebCore
Revision
289577
Author
[email protected]
Date
2022-02-10 14:21:28 -0800 (Thu, 10 Feb 2022)

Log Message

Fix linker errors when CG_DISPLAY_LIST_BACKED_IMAGE_BUFFER is enabled
https://bugs.webkit.org/show_bug.cgi?id=236455

Patch by Ada Chan <[email protected]> on 2022-02-10
Reviewed by Tim Horton.

WebCore::GraphicsContext::createImageBuffer() and WebCore::GraphicsContext::createCompatibleImageBuffer()
are used in WebKit::GraphicsContextCGDisplayList and need to be exported

* platform/graphics/GraphicsContext.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (289576 => 289577)


--- trunk/Source/WebCore/ChangeLog	2022-02-10 22:19:06 UTC (rev 289576)
+++ trunk/Source/WebCore/ChangeLog	2022-02-10 22:21:28 UTC (rev 289577)
@@ -1,3 +1,15 @@
+2022-02-10  Ada Chan  <[email protected]>
+
+        Fix linker errors when CG_DISPLAY_LIST_BACKED_IMAGE_BUFFER is enabled
+        https://bugs.webkit.org/show_bug.cgi?id=236455
+
+        Reviewed by Tim Horton.
+
+        WebCore::GraphicsContext::createImageBuffer() and WebCore::GraphicsContext::createCompatibleImageBuffer()
+        are used in WebKit::GraphicsContextCGDisplayList and need to be exported
+
+        * platform/graphics/GraphicsContext.h:
+
 2022-02-10  Alejandro G. Castro  <[email protected]>
 
         [GTK][WPE] Improve device detection in the GbmDevice

Modified: trunk/Source/WebCore/platform/graphics/GraphicsContext.h (289576 => 289577)


--- trunk/Source/WebCore/platform/graphics/GraphicsContext.h	2022-02-10 22:19:06 UTC (rev 289576)
+++ trunk/Source/WebCore/platform/graphics/GraphicsContext.h	2022-02-10 22:21:28 UTC (rev 289577)
@@ -421,8 +421,8 @@
     WEBCORE_EXPORT RefPtr<ImageBuffer> createImageBuffer(const FloatSize&, const FloatSize& scale = { 1, 1 }, const DestinationColorSpace& = DestinationColorSpace::SRGB(), std::optional<RenderingMode> = std::nullopt, RenderingMethod = RenderingMethod::Default) const;
     WEBCORE_EXPORT RefPtr<ImageBuffer> createImageBuffer(const FloatRect&, const FloatSize& scale = { 1, 1 }, const DestinationColorSpace& = DestinationColorSpace::SRGB(), std::optional<RenderingMode> = std::nullopt, RenderingMethod = RenderingMethod::Default) const;
 
-    virtual RefPtr<ImageBuffer> createCompatibleImageBuffer(const FloatSize&, const DestinationColorSpace& = DestinationColorSpace::SRGB(), RenderingMethod = RenderingMethod::Default) const;
-    virtual RefPtr<ImageBuffer> createCompatibleImageBuffer(const FloatRect&, const DestinationColorSpace& = DestinationColorSpace::SRGB(), RenderingMethod = RenderingMethod::Default) const;
+    WEBCORE_EXPORT virtual RefPtr<ImageBuffer> createCompatibleImageBuffer(const FloatSize&, const DestinationColorSpace& = DestinationColorSpace::SRGB(), RenderingMethod = RenderingMethod::Default) const;
+    WEBCORE_EXPORT virtual RefPtr<ImageBuffer> createCompatibleImageBuffer(const FloatRect&, const DestinationColorSpace& = DestinationColorSpace::SRGB(), RenderingMethod = RenderingMethod::Default) const;
 
     virtual void drawNativeImage(NativeImage&, const FloatSize& selfSize, const FloatRect& destRect, const FloatRect& srcRect, const ImagePaintingOptions& = { }) = 0;
 
@@ -554,7 +554,7 @@
     void fillEllipseAsPath(const FloatRect&);
     void strokeEllipseAsPath(const FloatRect&);
 
-    virtual RefPtr<ImageBuffer> createImageBuffer(const FloatSize&, const DestinationColorSpace&, RenderingMode, RenderingMethod) const;
+    WEBCORE_EXPORT virtual RefPtr<ImageBuffer> createImageBuffer(const FloatSize&, const DestinationColorSpace&, RenderingMode, RenderingMethod) const;
 
     FloatRect computeLineBoundsAndAntialiasingModeForText(const FloatRect&, bool printing, Color&);
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to