Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update google/skia to milestone 115 #2547

Merged
merged 9 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion binding/Binding.Shared/DelegateProxies.shared.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;
using System.Collections.Concurrent;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
2 changes: 2 additions & 0 deletions binding/Binding.Shared/HashCode.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Partial code copied from:
// https://github.com/dotnet/runtime/blob/6072e4d3a7a2a1493f514cdf4be75a3d56580e84/src/libraries/System.Private.CoreLib/src/System/HashCode.cs

#nullable disable

using System;
using System.Runtime.CompilerServices;

Expand Down
4 changes: 3 additions & 1 deletion binding/Binding.Shared/LibraryLoader.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;
using System.IO;
using System.Runtime.InteropServices;

Expand Down
4 changes: 3 additions & 1 deletion binding/Binding.Shared/PlatformConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;
using System.Runtime.InteropServices;

#if WINDOWS_UWP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>
<ItemGroup>
<PackageFile Include="..\..\output\native\tizen\armel\libHarfBuzzSharp.*" PackagePath="runtimes\tizen-armel\native\%(Filename)%(Extension)" />
<PackageFile Include="..\..\output\native\tizen\i386\libHarfBuzzSharp.*" PackagePath="runtimes\tizen-x86\native\%(Filename)%(Extension)" />
<PackageFile Include="..\..\output\native\tizen\i386\libHarfBuzzSharp.*" PackagePath="runtimes\linux-x86\native\%(Filename)%(Extension)" />
<PackageFile Include="..\..\output\native\tizen\i586\libHarfBuzzSharp.*" PackagePath="runtimes\tizen-x86\native\%(Filename)%(Extension)" />
<PackageFile Include="..\..\output\native\tizen\i586\libHarfBuzzSharp.*" PackagePath="runtimes\linux-x86\native\%(Filename)%(Extension)" />
</ItemGroup>
<Target Name="IncludeAdditionalTfmSpecificPackageFiles">
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</ItemGroup>

<!-- If this is a ASP.NET Blazor web assembly app -->
<PropertyGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' and '$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true'">
<PropertyGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true'">
<WasmBuildNative Condition="'$(WasmBuildNative)' == ''">true</WasmBuildNative>
</PropertyGroup>
<ItemGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' and '$(TargetFrameworkVersion)' != ''">
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/Blob.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;
using System.ComponentModel;
using System.IO;

Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/Buffer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;
using System.Buffers;
using System.Runtime.InteropServices;
using System.Text;
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/Definitions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;

namespace HarfBuzzSharp
{
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/DelegateProxies.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;
using System.ComponentModel;

namespace HarfBuzzSharp
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/DelegateProxies.font.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;

namespace HarfBuzzSharp
{
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/DelegateProxies.unicode.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;

namespace HarfBuzzSharp
{
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/Face.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;

namespace HarfBuzzSharp
{
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/Feature.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;
using System.Runtime.InteropServices;

namespace HarfBuzzSharp
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/Font.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;
using System.Buffers;
using System.Collections.Generic;
using System.Linq;
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/FontFunctions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;

namespace HarfBuzzSharp
{
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/HarfBuzzApi.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;

namespace HarfBuzzSharp
{
Expand Down
1 change: 1 addition & 0 deletions binding/HarfBuzzSharp/HarfBuzzSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<AssemblyName>HarfBuzzSharp</AssemblyName>
<PackagingGroup>HarfBuzzSharp</PackagingGroup>
<DefineConstants>$(DefineConstants);HARFBUZZ</DefineConstants>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
<DefineConstants>$(DefineConstants);USE_DELEGATES</DefineConstants>
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/Language.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;
using System.Globalization;
using System.Runtime.InteropServices;

Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/NativeObject.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;

Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/OpenTypeMetrics.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;

namespace HarfBuzzSharp
{
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/Script.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;

namespace HarfBuzzSharp
{
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/Script.fields.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace HarfBuzzSharp
#nullable disable

namespace HarfBuzzSharp
{
public partial struct Script
{
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/Tag.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;

namespace HarfBuzzSharp
{
Expand Down
4 changes: 3 additions & 1 deletion binding/HarfBuzzSharp/UnicodeFunctions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;

namespace HarfBuzzSharp
{
Expand Down
4 changes: 2 additions & 2 deletions binding/IncludeNativeAssets.HarfBuzzSharp.targets
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</ItemGroup>

<ItemGroup Condition="$(TargetFramework.Contains('-tizen'))">
<TizenTpkFiles Include="$(MSBuildThisFileDirectory)..\output\native\tizen\i386\libHarfBuzzSharp.so">
<TizenTpkFiles Include="$(MSBuildThisFileDirectory)..\output\native\tizen\i586\libHarfBuzzSharp.so">
<Visible>false</Visible>
<TizenTpkSubDir>bin\runtimes\linux-x86\native\</TizenTpkSubDir>
<TizenTpkFileName>libHarfBuzzSharp.so</TizenTpkFileName>
Expand All @@ -62,7 +62,7 @@
<Content Include="$(MSBuildThisFileDirectory)..\output\native\wasm\libHarfBuzzSharp.a\**\*.a" Visible="false" />
</ItemGroup>

<PropertyGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' and '$(TargetFrameworkVersion)' != ''">
<PropertyGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true'">
<WasmBuildNative Condition="'$(WasmBuildNative)' == ''">true</WasmBuildNative>
</PropertyGroup>
<ItemGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' and '$(TargetFrameworkVersion)' != ''">
Expand Down
5 changes: 3 additions & 2 deletions binding/IncludeNativeAssets.SkiaSharp.targets
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</ItemGroup>

<ItemGroup Condition="$(TargetFramework.Contains('-tizen'))">
<TizenTpkFiles Include="$(MSBuildThisFileDirectory)..\output\native\tizen\i386\libSkiaSharp.so">
<TizenTpkFiles Include="$(MSBuildThisFileDirectory)..\output\native\tizen\i586\libSkiaSharp.so">
<Visible>false</Visible>
<TizenTpkSubDir>bin\runtimes\linux-x86\native\</TizenTpkSubDir>
<TizenTpkFileName>libSkiaSharp.so</TizenTpkFileName>
Expand All @@ -66,8 +66,9 @@
<WasmShellExtraEmccFlags Condition="'$(WasmShellEnableThreads)'=='True'" Include="-s OFFSCREEN_FRAMEBUFFER=1" />
</ItemGroup>

<PropertyGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' and '$(TargetFrameworkVersion)' != ''">
<PropertyGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true'">
<WasmBuildNative Condition="'$(WasmBuildNative)' == ''">true</WasmBuildNative>
<EmccExtraLDFlags>$(EmccExtraLDFlags) -s USE_WEBGL2=1</EmccExtraLDFlags>
</PropertyGroup>
<ItemGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' and '$(TargetFrameworkVersion)' != ''">
<NativeFileReference Include="$(MSBuildThisFileDirectory)..\output\native\wasm\libSkiaSharp.a\2.0.23\*.a" Condition="$([MSBuild]::VersionEquals($(TargetFrameworkVersion), '6.0'))" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>
<ItemGroup>
<PackageFile Include="..\..\output\native\tizen\armel\libSkiaSharp.*" PackagePath="runtimes\tizen-armel\native\%(Filename)%(Extension)" />
<PackageFile Include="..\..\output\native\tizen\i386\libSkiaSharp.*" PackagePath="runtimes\tizen-x86\native\%(Filename)%(Extension)" />
<PackageFile Include="..\..\output\native\tizen\i386\libSkiaSharp.*" PackagePath="runtimes\linux-x86\native\%(Filename)%(Extension)" />
<PackageFile Include="..\..\output\native\tizen\i586\libSkiaSharp.*" PackagePath="runtimes\tizen-x86\native\%(Filename)%(Extension)" />
<PackageFile Include="..\..\output\native\tizen\i586\libSkiaSharp.*" PackagePath="runtimes\linux-x86\native\%(Filename)%(Extension)" />
</ItemGroup>
<Target Name="IncludeAdditionalTfmSpecificPackageFiles">
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
</ItemGroup>

<!-- If this is a ASP.NET Blazor web assembly app -->
<PropertyGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' and '$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true'">
<PropertyGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true'">
<WasmBuildNative Condition="'$(WasmBuildNative)' == ''">true</WasmBuildNative>
<EmccExtraLDFlags>$(EmccExtraLDFlags) -s USE_WEBGL2=1</EmccExtraLDFlags>
</PropertyGroup>
<ItemGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' and '$(TargetFrameworkVersion)' != ''">
<NativeFileReference Include="$(SkiaSharpStaticLibraryPath)\2.0.23\*.a" Condition="$([MSBuild]::VersionEquals($(TargetFrameworkVersion), '6.0'))" />
Expand Down
4 changes: 3 additions & 1 deletion binding/SkiaSharp.SceneGraph/InvalidationController.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;
using System.ComponentModel;
using System.IO;
using System.Runtime.InteropServices;
Expand Down
4 changes: 3 additions & 1 deletion binding/SkiaSharp.SceneGraph/SceneGraphApi.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;

namespace SkiaSharp
{
Expand Down
8 changes: 1 addition & 7 deletions binding/SkiaSharp.SceneGraph/SceneGraphApi.generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,26 @@
using gr_vk_extensions_t = System.IntPtr;
using gr_vk_memory_allocator_t = System.IntPtr;
using gr_vkinterface_t = System.IntPtr;
using sk_3dview_t = System.IntPtr;
using sk_bitmap_t = System.IntPtr;
using sk_canvas_t = System.IntPtr;
using sk_codec_t = System.IntPtr;
using sk_colorfilter_t = System.IntPtr;
using sk_colorspace_icc_profile_t = System.IntPtr;
using sk_colorspace_t = System.IntPtr;
using sk_colortable_t = System.IntPtr;
using sk_compatpaint_t = System.IntPtr;
using sk_data_t = System.IntPtr;
using sk_document_t = System.IntPtr;
using sk_drawable_t = System.IntPtr;
using sk_flattenable_t = System.IntPtr;
using sk_font_t = System.IntPtr;
using sk_fontmgr_t = System.IntPtr;
using sk_fontstyle_t = System.IntPtr;
using sk_fontstyleset_t = System.IntPtr;
using sk_image_t = System.IntPtr;
using sk_imagefilter_croprect_t = System.IntPtr;
using sk_imagefilter_t = System.IntPtr;
using sk_manageddrawable_t = System.IntPtr;
using sk_managedtracememorydump_t = System.IntPtr;
using sk_maskfilter_t = System.IntPtr;
using sk_matrix44_t = System.IntPtr;
using sk_nodraw_canvas_t = System.IntPtr;
using sk_nvrefcnt_t = System.IntPtr;
using sk_nway_canvas_t = System.IntPtr;
Expand All @@ -62,7 +59,6 @@
using sk_region_t = System.IntPtr;
using sk_rrect_t = System.IntPtr;
using sk_runtimeeffect_t = System.IntPtr;
using sk_runtimeeffect_uniform_t = System.IntPtr;
using sk_shader_t = System.IntPtr;
using sk_stream_asset_t = System.IntPtr;
using sk_stream_filestream_t = System.IntPtr;
Expand All @@ -83,8 +79,6 @@
using sk_wstream_filestream_t = System.IntPtr;
using sk_wstream_managedstream_t = System.IntPtr;
using sk_wstream_t = System.IntPtr;
using sk_xmlstreamwriter_t = System.IntPtr;
using sk_xmlwriter_t = System.IntPtr;
using skottie_animation_builder_t = System.IntPtr;
using skottie_animation_t = System.IntPtr;
using skottie_logger_t = System.IntPtr;
Expand Down
1 change: 1 addition & 0 deletions binding/SkiaSharp.SceneGraph/SkiaSharp.SceneGraph.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<Title>SkiaSharp Skottie</Title>
<PackageDescription>SkiaSharp Skottie provides a Lottie implementation using the SkiaSharp library.</PackageDescription>
<PackageTags>skottie;lottie</PackageTags>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
<DefineConstants>$(DefineConstants);USE_DELEGATES</DefineConstants>
Expand Down
3 changes: 1 addition & 2 deletions binding/SkiaSharp.Skottie/Animation.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#nullable enable
using System;
using System;
using System.IO;
using SkiaSharp.SceneGraph;

Expand Down
1 change: 1 addition & 0 deletions binding/SkiaSharp.Skottie/SkiaSharp.Skottie.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<Title>SkiaSharp Skottie</Title>
<PackageDescription>SkiaSharp Skottie provides a Lottie implementation using the SkiaSharp library.</PackageDescription>
<PackageTags>skottie;lottie</PackageTags>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
<DefineConstants>$(DefineConstants);USE_DELEGATES</DefineConstants>
Expand Down
4 changes: 3 additions & 1 deletion binding/SkiaSharp.Skottie/SkottieApi.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#nullable disable

using System;

namespace SkiaSharp
{
Expand Down
Loading