Parcourir la source

Meta+LibWeb: Update Skia to version 129

Aliaksandr Kalenik il y a 9 mois
Parent
commit
15c47dc623

BIN
Tests/LibWeb/Screenshot/images/border-radius-ref.png


BIN
Tests/LibWeb/Screenshot/images/canvas-arcs-and-ellipses-ref.png


BIN
Tests/LibWeb/Screenshot/images/canvas-text-ref.png


BIN
Tests/LibWeb/Screenshot/images/css-background-clip-text.png


BIN
Tests/LibWeb/Screenshot/images/opacity-stacking-ref.png


BIN
Tests/LibWeb/Screenshot/images/svg-text-effects-ref.png


BIN
Tests/LibWeb/Screenshot/images/svg-textPath-ref.png


BIN
Tests/LibWeb/Screenshot/images/text-shadow-ref.png


+ 3 - 3
Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp

@@ -31,7 +31,6 @@
 
 #ifdef USE_VULKAN
 #    include <gpu/ganesh/vk/GrVkDirectContext.h>
-#    include <gpu/vk/GrVkBackendContext.h>
 #    include <gpu/vk/VulkanBackendContext.h>
 #    include <gpu/vk/VulkanExtensions.h>
 #endif
@@ -39,6 +38,7 @@
 #ifdef AK_OS_MACOS
 #    include <gpu/GrBackendSurface.h>
 #    include <gpu/ganesh/mtl/GrMtlBackendContext.h>
+#    include <gpu/ganesh/mtl/GrMtlBackendSurface.h>
 #    include <gpu/ganesh/mtl/GrMtlDirectContext.h>
 #endif
 
@@ -104,7 +104,7 @@ private:
 
 OwnPtr<SkiaBackendContext> DisplayListPlayerSkia::create_vulkan_context(Core::VulkanContext& vulkan_context)
 {
-    GrVkBackendContext backend_context;
+    skgpu::VulkanBackendContext backend_context;
 
     backend_context.fInstance = vulkan_context.instance;
     backend_context.fDevice = vulkan_context.logical_device;
@@ -155,7 +155,7 @@ public:
     {
         GrMtlTextureInfo mtl_info;
         mtl_info.fTexture = sk_ret_cfp(metal_texture.texture());
-        auto backend_render_target = GrBackendRenderTarget(metal_texture.width(), metal_texture.height(), mtl_info);
+        auto backend_render_target = GrBackendRenderTargets::MakeMtl(metal_texture.width(), metal_texture.height(), mtl_info);
         return SkSurfaces::WrapBackendRenderTarget(m_context.get(), backend_render_target, kTopLeft_GrSurfaceOrigin, kBGRA_8888_SkColorType, nullptr, nullptr);
     }
 

+ 1 - 1
vcpkg.json

@@ -101,7 +101,7 @@
     },
     {
       "name": "skia",
-      "version": "124#0"
+      "version": "129#0"
     },
     {
       "name": "sqlite3",