Граф коммитов

332 Коммитов

Автор SHA1 Сообщение Дата
Max Katz 9cbf9c80b7
Function pointers and LibraryImport (#2917)
* Update generator to emit function pointers

* Regenerate interop files

* Enable USE_LIBRARY_IMPORT in HarfBuzzSharp

* Enable USE_LIBRARY_IMPORT on SkiaSharp

* Set DisableRuntimeMarshalling on HarfBuzzSharp

* Replace remaining DllImports with LibraryImport on SkiaSharp

* Set DisableRuntimeMarshalling on SkiaSharp as well

* Fix missed proxy definition

* Regenerate skia api with a correct submodule version

* Collections literals are not supported on the CI .NET SDK

* An attempt to fix Tizen build

* Forgot about partial

* Set UnmanagedType.LPStr on evas_gl_proc_address_get instead

* Set USE_LIBRARY_IMPORT on remaining projects too

* Update generator tool to generate DelegateProxy as well

* Regenerate HarfBuzz and SkiaSharp with new DelegateProxy source gen

* Regenerate other projects as well

* Add `protected internal` to test classes too, since this project has InternalsVisibleTo configured

* Disable DelegateTypesAreValid and DelegateTypesHaveAttributes tests on .NET 7+ build, see comments

* Reduce warnings noise

* Update binding/SkiaSharp/GRGlInterface.cs

Co-authored-by: Filip Navara <filip.navara@gmail.com>

* Add missing USE_LIBRARY_IMPORT defines

* Update binding/SkiaSharp/GRGlInterface.cs

* Also needs USE_LIBRARY_IMPORT

---------

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: Filip Navara <filip.navara@gmail.com>
2024-08-21 23:16:05 +08:00
Matthew Leibowitz ccde024b62
Fix memory leaks in MAUI views (#2955)
Fixes #2923
2024-07-26 16:14:49 +08:00
Jeremy Powell 58b618c2cd
Fix AVE disposing cloned SKPaint (#2904)
Clone should operate on SkCompatPaint
2024-07-08 14:35:00 +02:00
Matthew Leibowitz 463dd82027
Add R-Tree overload of beginRecording (#2889)
* Add R-Tree overload for BeginRecording

* Fix the tests

* Update skia
2024-06-18 11:09:50 +02:00
Matthew Leibowitz c27367ab18
Make unit tests more reliable (#2890) 2024-06-04 17:17:00 +02:00
Matthew Leibowitz c62991932c
Add more SKPicture APIs (#2883)
Adding a few new APIs to help with determining picture and drawable "size" 
as well as adding the `Playback` method to `SKPicture`.

The playback method is different to draw in that draw results in a single
"draw the picture" command, but playback effectively replicates what
was done to create the picture. There is a small different to the latter
in that the picture may optimize/combine commands as well as split 
commands to best fit into the picture's storage.
2024-06-03 17:15:28 +02:00
Matthew Leibowitz aa4f2ffedb
Expose SKBlender (#2830) 2024-04-15 23:50:36 +02:00
Matthew Leibowitz 99a2607fd3
Clean up SKTextBlobBuilder and SKRunBuffer APIs (#2775) 2024-03-29 00:34:20 +02:00
Matthew Leibowitz 7ebc1f0719
Use Unsafe.As for better perf (#2780) 2024-03-04 21:42:00 +02:00
Matthew Leibowitz 42fc0181e0
Bind Skottie's Animation Builder (#2630) 2024-02-18 17:33:24 +02:00
Matthew Leibowitz 0176323d7e
Add SKImage.ToRawShader (#2748) 2024-02-09 20:46:21 +02:00
Matthew Leibowitz 6a51a6bca0
Revert the libjpeg-turbo update and roll back to 2.1.5.1 (#2699)
* Revert "Update libjpeg-turbo to 3.0.0 (#2583)"

This reverts commit 89ee4f1c6e.

* Add tests

* submodule
2024-01-10 11:28:49 +02:00
Matthew Leibowitz eeeb0db279
Added GetPixelSpan() with offsets (#2609) 2023-09-15 17:07:20 +02:00
Matthew Leibowitz ab230d4812
Update harfbuzz to 7.3.0 (#2582)
\
2023-08-29 04:22:49 +02:00
Matthew Leibowitz 07aa3f3728
Add some more specific tests (#2573)
These tests are loading a custom typeface from a file and assigned to the paint and font Typeface properties. This is to ensure nothing obvious is going wrong.

Related to #2572
2023-08-22 08:06:19 +08:00
Matthew Leibowitz 8fd4dc535a
Floor outwards when converting to SKRectI (#2568)
Truncation will chop off parts, and this will lose value. Flooring outwards ensure that the size touches the edge of the containing rect. This is useful that any partial overhang with integer sizes can be clipped when drawing.
2023-08-20 17:47:32 +02:00
Matthew Leibowitz 22f536059e Updated the tests with all the new changes 2023-08-17 17:24:04 +02:00
Matthew Leibowitz a956fd14ab
Adding back text-based blobs (#2545) 2023-08-01 21:57:42 +08: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
Matthew Leibowitz 1131738c9b
Update some more NuGets (#2304) 2022-11-24 18:32:33 +02:00
Matthew Leibowitz 36106662e6
A skip is basically a read to a null buffer (#2265) 2022-09-29 14:54:59 +08:00
Matthew Leibowitz 19e59c2bd4
Make the configuration public (#1856)
Also move it to an internals namespace for other "configuration" points.
2022-08-12 12:02:36 +02:00
Matthew Leibowitz 8f81be2691
Support loading animations with BOM (#2167)
* Support loading animations with BOM

Fixes #2166

* New .NET version that just came out
2022-07-14 05:26:52 +02:00
Matthew Leibowitz 45cfd16555
Make the SKDataStream writeable like SKData (#2128) 2022-06-28 01:35:43 +02:00
Matthew Leibowitz a8905041d4
[skottie] Handle non-seekable streams (#2126) 2022-06-26 04:08:28 +02:00
Matthew Leibowitz 297d6bfc5b
Add nullable attributes, TimeSpan and overloads to Skottie (#2119)
* Add nullable attibutes and overloads to Skottie

* Changed Duration to TimeSpan

* Update xample to use new APIs
2022-06-20 08:06:56 +02:00
koolkdev af41b42415
SKShaper: Support SKPaint.TextAlign property (#1910)
Co-authored-by: Tal Keren <tal@keren.dev>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2022-06-03 17:54:34 +02:00
Matthew Leibowitz 4683ac719e
Move Skottie and SceneGraph out of the core SkiaSharp.dll (#2091) 2022-06-03 17:53:57 +02:00
Jérôme Laban cda59a8fb3
feat: Add basic Skottie support (#1987)
* feat: Add basic Skottie support
* chore: Adjust skottie SKStream support
* ci: Adjust apple targets
* chore: Adjust apple targets
* chore: Adjust tizen targets
* chore: Adjust APIs, add tests, align with new memory management functions
* chore: Adjust for updated API name in sample
* chore: Adjust test values
* chore: Adjust AnimationRenderFlags generation
* chore: Fix linux skottie export map
* ci: Update skia submodule
2022-05-31 22:40:16 +02:00
Matthew Leibowitz 59ee16f809
Return null on invalid resize bounds (#2054)
Fixes #2012
2022-05-26 14:38:28 +02:00
Matthew Leibowitz 01deefb40e
Fix PNG loading issues by updating the zlib to one with fixes (#2045) 2022-05-18 09:53:12 +02:00
Matthew Leibowitz b87980d971
Never dispose the native statics (#1863) 2021-11-15 21:24:13 +02:00
Matthew Leibowitz 95c296bd9e
Add some of the new APIs (#1828) 2021-10-14 07:13:23 +02:00
Matthew Leibowitz f8dbe84f96 Merge remote-tracking branch 'origin/patch/v2.80.4' 2021-09-08 23:40:52 +02:00
Matthew Leibowitz 5ab62b5a4d
IsAntialias should also control the Edging (#1802) 2021-09-08 23:34:34 +02:00
Matthew Leibowitz 4a468580d0
Update HarfBuzz to 2.8.2 (#1766) 2021-08-19 06:43:33 +02:00
Matthew Leibowitz d18e852f05 Merge branch 'main' into develop 2021-05-20 22:48:15 +02:00
Matthew Leibowitz 8b44e793bf
Properly Detect & Handle Musl Systems (#1657)
Fixes #1637
2021-05-20 09:09:31 +02:00
Matthew Leibowitz 48c7e9a2ca Merge remote-tracking branch 'origin/main' into develop 2021-05-18 03:06:34 +02:00
Matthew Leibowitz 4e9a505aef
Update to .NET 5.0 (#1697) 2021-05-08 01:49:57 +02:00
Matthew Leibowitz cb963f2fcf Merge main into develop 2021-03-20 00:20:12 +02:00
Matthew Leibowitz 751bdf4303
Expose IsAbandoned in the C# API (#1659) 2021-03-15 10:25:16 +02:00
Matthew Leibowitz 87fbd9c536 Revert "Revert "Merge branch 'develop' into main""
This reverts commit 8be3cd9602.
2021-03-13 06:09:56 +02:00
Matthew Leibowitz 8be3cd9602 Revert "Merge branch 'develop' into main"
This reverts commit 553cd1b5b8, reversing
changes made to 770964be7b.
2021-03-13 06:07:23 +02:00
Matthew Leibowitz 120b63c466 Merge branch 'main' into develop 2021-03-12 02:48:53 +02:00
Matthew Leibowitz ec4f45adc3
Add iOS device tests (#1638) 2021-02-21 18:11:28 +02:00
Matthew Leibowitz 39af14bd27
Add Tests for Mobile (Android and iOS) (#1630)
* Updated Xcode
2021-02-18 15:10:08 +02:00
Matthew Leibowitz 3d79f41272 Merge branch 'main' into develop 2021-02-05 11:04:27 +02:00
Matthew Leibowitz 24f4bb50e0 Add the SKRuntimeEffect API 2021-02-05 10:42:42 +02:00