Commit graph

508 commits

Author SHA1 Message Date
Matthew Leibowitz
6a2982ad6e
Fix the import for apps with a base path (#3092) 2024-12-02 22:41:56 +08:00
Matthew Leibowitz
32fbf8deb2
Move the Blazor workaround into WASM (#3082)
The workaround needed for WASM is not really Blazor specific
and if the project is not using the Blazor views, the fix will not
be applied to the build.
2024-11-28 06:52:46 +08:00
Matthew Leibowitz
aa42586285
Use <WindowsSdkPackageVersion> to set the SDK version (#3085) 2024-11-28 06:48:37 +08:00
Matthew Leibowitz
af2f0c1c12
Fix .NET 9 ASP.NET Blazor issues (#3064)
* Fix .NET 9 ASP.NET Blazor issues
* Fix the build!
* Fix https://github.com/mono/SkiaSharp/issues/3065
The wrong API was used
* fix the yaml
2024-11-26 02:48:20 +08:00
Matthew Leibowitz
60b07b722e
Use the new GLControl packages for WinForms (#2989) 2024-09-19 02:04:14 +08:00
Matthew Leibowitz
40b0f57852
Update SDK, workloads and projects (#2971) 2024-08-17 01:53:38 +08:00
Matthew Leibowitz
054d48e7a3
Make sure ANGLE reaches the nugets (#2970)
After #2950 landed, the native artifacts were not downloaded and included in the general native collection step.
2024-08-17 01:18:50 +08:00
Matthew Leibowitz
ccde024b62
Fix memory leaks in MAUI views (#2955)
Fixes #2923
2024-07-26 16:14:49 +08:00
Matthew Leibowitz
171e086a89
Update .NET to 8.0 (#2927)
* Update the Dockerfiles
* Use newer Xcode
* Update Blazor WASM Sample
* Update Uno Samples
2024-07-26 00:28:28 +08:00
Matthew Leibowitz
9fde53e5f1
Update IBufferByteAccess for AOT (#2920)
Fixes https://github.com/microsoft/CsWinRT/issues/1645
2024-07-18 21:57:03 +02:00
Matthew Leibowitz
3ace63b183
Do not stretch the background (#2922)
* Do not stretch the background

When resizing a view, the background will be stretched making the image distorted and not a great experience.

This PR make sure to never scale the background brush and rather keep it top-left aligned.

* Update SKXamlCanvas.cs

* Scale the brush instead of stretching it
2024-07-05 16:18:32 +08:00
Youssef Victor
c264c449b8
Fix SKXamlCanvas on Uno Skia to use Bgra8888 (#2918)
* Fix SKXamlCanvas on Uno Skia to use Bgra8888
* Fix build
2024-07-03 23:07:13 +02:00
Jérôme Laban
8e7a51dc04
fix: XamlRoot may be null when the SKXamlCanvas is unloaded (#2854)
* fix: XamlRoot may be null when the SKXamlCanvas is unloaded

* chore: Adjust more xamlroot uses

---------

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2024-06-03 16:22:23 +02:00
Matthew Leibowitz
258a6f62bd
Use the new license expressions (#2878) 2024-06-03 13:13:15 +02:00
Matthew Leibowitz
1760351123
Only process assemblies that exist (#2864) 2024-05-20 20:21:07 +08:00
Matthew Leibowitz
647403d6dc
Add and remove the compatibility APIs (#2789) 2024-04-08 21:08:57 +02:00
Alberto Rodríguez
a290ccffc7
Expose Blazor components dpi (#1832) 2024-04-02 16:16:14 +02:00
Nick Kovalsky
4f87c3a1b7
Fix Snapshot returning magenta color Apple Metal (#2804) 2024-03-29 00:34:59 +02:00
Matthew Leibowitz
99a2607fd3
Clean up SKTextBlobBuilder and SKRunBuffer APIs (#2775) 2024-03-29 00:34:20 +02:00
gmurray81
ba0135c12a
Add SKGLElement to SkiaSharp.Views.WPF (#2317)
* add SKGLElement

* revert unintentional change to build props

* fix bad merge

* remove whitespace diff

* update package conditional, remove obselete member

* update to newer glwpfcontrol version

* prevent opentk from automatically registering events

* simplify releasing the managed resources

* remove unecessary duplicate clear

* block signing for OpenTK 4+
2024-03-28 16:11:22 +02:00
Matthew Leibowitz
ca295d0066
Fix benchmarks project (#2781) 2024-03-03 20:43:13 +02:00
Matthew Leibowitz
42fc0181e0
Bind Skottie's Animation Builder (#2630) 2024-02-18 17:33:24 +02:00
Matthew Leibowitz
01a3218c38
Use Metal as a backend on Mac Catalyst (#2747) 2024-02-10 08:25:32 +02:00
Matthew Leibowitz
9bb8b235fa Do not provide invalid externs (#2710) 2024-02-06 02:49:40 +02:00
Matthew Leibowitz
39d0829f8d
Don't put metadata in package versions (#2743) 2024-02-06 08:35:13 +08:00
Matthew Leibowitz
04ff977ac0
Implemented SKGLView (#2598)
- Mac Catalyst does not support OpenGL and will need a
  new Metal-based view
- Tizen needs the support in the native view
2024-02-04 13:32:21 +02:00
Matthew Leibowitz
79162b3cc3
Add support for WinUI accelerated views (#2733)
Adds the GPU views for WinUI, but there are a few othe things it need
to do:
- Builds ANGLE as this is the primary interop between SkiaSharp and
  DirectX
- Builds an interop library that extends types needed for interacting
  with ANGLE
- Enables AngleSwapChainPanel as this is the WinUI view that sets up
  the GL context
- Enables the SKSwapChainPanel as this is the SkiaSharp accelerated
  view
- Add a new NativeAssets package for WinUI native files
2024-02-03 18:25:18 +08:00
lindexi
08c711cad6
Avoid async void in SKXamlCanvas. (#2720)
The async void will terminate here. And we can ignore the Dispatcher.RunAsync result and we can receive the exception from TaskScheduler.UnobservedTaskException.

See https://github.com/dotnet/runtime/issues/76367
2024-01-31 14:45:40 +08:00
Matthew Leibowitz
30ccd31fbe
NuGet versions need to be < 64 characters (#2707) 2024-01-12 16:45:56 +02:00
Matthew Leibowitz
74282e13e0
Fix the erroneous > (#2596) 2023-09-05 00:49:37 +02:00
Matthew Leibowitz
b5cca1a0c4
Try do a better job at detecting workloads (#2567) 2023-08-19 22:02:03 +02:00
Jérôme Laban
7f9951d108
fix(skxamlcanvas): [Wasm] Don't fail when the canvas can't be found (#2563) 2023-08-19 02:15:12 +08:00
Jérôme Laban
d5bcfdf3ef
fix(uno): Ensure that the canvas' context is active when rendering (#2559) 2023-08-18 06:37:00 +08:00
Matthew Leibowitz
b0a631e8cd Updated SkiaSharp.HarfBuzz to use the new APIs 2023-08-17 17:24:04 +02:00
Matthew Leibowitz
a140a2033c
Remove all [Obsolete] members and types (#2539)
* Remove all [Obsolete] APIs from the bindings
* Remove all [Obsolete] APIs from the source
* Fix up the tests after removing things
* Fix up the samples
2023-08-01 05:22:44 +08:00
Matthew Leibowitz
bc5020b9ee
Modernize the repository and prepare SkiaSharp 3.0 (#2505)
* Merge and modernize the binding projects
* Remove UWP and watchOS
* Add the native assets projects
* Rename bootstrapper.ps1 to build.ps1
* Add new device tests
* Rework the test skipping feature

---------

Co-authored-by: Jerome Laban <jerome.laban@nventive.com>
2023-07-30 23:49:57 +08:00
Lehonti Ramos
7d7766532a
Removing nesting levels through block-scoped using statement (#2528)
Co-authored-by: John Doe <john@doe>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2023-07-22 01:06:14 +08:00
Jérôme Laban
402c29894b
fix: Disambiguate SKGLView for uno and maui targets (#2529)
* fix: Disambiguate SKGLView for uno and maui targets
* chore: Remove explicit registation value
2023-07-21 18:39:33 +02:00
Jérôme Laban
17a289b3d3
feat: Move to JSImport for WinUI Target on net7.0 (#2428)
* ci: Adjust .NET 7 task name

* feat: Move to JSImport for WinUI Target on net7.0

* ci: Remove Uno Gallery WinUI sample testing on linux

Until dotnet build can be used. The sample is still built under windows.

* ci: Build uno.winui gallery

* ci: Adjust gallery net6-ios build

* chore: Add Uno SKSwapChainPanel stub for mac catalyst

* ci: remove winui test for net7

Needed until uno.ui can be updated to 4.6 or later, as the uno-runtime folder now supports the net7.0 structure, and is incompatible with uno 4.5 or earlier.

* ci: restore linux sample test

* ci: Adjust targets inclusion for uno winui

* ci: Add macOS testing for netcore targets

* chore: remove uno build from linux netfx, add netcore linux specific filter

* ci: remove netcore incompatible filters from library build

* ci: Remove linux test for uno.winui sample app
2023-06-21 21:17:49 +08:00
niza93
7bd1cc861d
Fixed ToRect extension method extension (#2392) 2023-06-21 14:55:39 +02:00
Matthew Leibowitz
0110e7d456
Include the new WASM assets in Blazor for .NET 8 (#2497) 2023-06-19 18:23:26 +02:00
Matthew Leibowitz
0801deeaae
Add a .NET iOS & Mac Catalyst sample and .NET "Core" sample support (#2491) 2023-06-16 21:15:34 +02:00
Jean-Marie Alfonsi
0b4c6e54de
Update bitmap SKAlphaType in SKXamlCanvas.Wasm.cs (#2443)
To obtain the expected built bitmap by skia, we need to change the SKAlphaType of the build image.
Opaque doesn't give correct results when bluring none opaque colors for example.
Premul doesn't work either for a particular reason:
In javascript we use the ImageData API.
The ImageData API store the pixels as un-premultiplied.
So if we use the premultiplied enum value we end up with wrong pixel colors (same result as Opaque in fact).
I tested unpremul value in a project that is using blur, and it gives the correct results.

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2023-06-14 10:26:44 +02:00
JJ Zhang
397253d540
Fix SKCanvasView dispose exception when the view is disposed before it's rendered (#2472) 2023-06-13 07:32:12 +08:00
FoggyFinder
a426c16f92
additional check to avoid exception (#2313) 2023-06-13 07:10:15 +08:00
Dean Ellis
99c2437b10
Ship the .aar with the NuGet for android (#2465)
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2023-06-08 17:12:20 +02:00
Matthew Leibowitz
53f3388581
Use the correct method for setting Opaque on macOS (#2477)
#2398 had an issue but was merged in the hopes CI would work.
I am now working on CI and this is blocking.
Fix for a2cfbb2715
2023-06-07 20:01:30 +08:00
Jean-Marie Alfonsi
a2cfbb2715
[Uno] Default Opaque to false for SKXamlCanvas on MacOS and iOS (#2398) 2023-03-15 13:44:56 +02:00
Jean-Marie Alfonsi
48d3e2596f
Update SKSwapChainPanel.Android.cs (#2400)
set non opaque TextureView
2023-03-15 13:42:46 +02:00
Jean-Marie Alfonsi
769d5e0a28
Update SKSwapChainPanel.iOS.cs (#2401)
set to non opaque for consistency
2023-03-15 13:42:13 +02:00