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

Update google/skia to milestone 115 #2547

merged 9 commits into from
Aug 17, 2023

Conversation

mattleibow
Copy link
Contributor

@mattleibow mattleibow commented Aug 2, 2023

Description of Change

This PR is the main set of changes to update to the latest "stable" chrome milestone: 115

There are going to be several major breaking changes in this PR, but we will re-evaluate them all again once we are fully operational. The #2544 issue will track that part. Any APIs that are still needed and are within reason will be added in that work. This PR is going to aim for the most up-to-date and the as-clean-as-possible change.

Bugs Fixed

API Changes

This was a large set of changes, both to the code as well as to new requirements. The changes included:

Minimum Versions Changes:

  • Android: 21 (v5.0)
  • macOS: 10.13 (High Sierra)
  • Tizen: 6.0
  • tvOS: 11.0
  • Debian: 10 (Buster)

Tooling Changes:

  • Updated depot_tools (and this also needed other related changes)
  • Updated macOS build agent to macOS 13 with Xcode 14.3.1
  • Updated the Android NDK to r25c
  • Updated Tizen Studio to 5.1
  • Ninja is now a required dependency and not included in depot_tools
  • Python is now used to run ninja instead of ninja run directly

Code Changes:

  • New color types in SKColorType
  • New encoder options (SKJpegEncoderOptions, SKPngEncoderOptions, SKWebpEncoderOptions)
  • New sampling/filtering options (SKSamplingOptions instead of SKFilterQuality)
  • SKMatrix44 is totally new
    • Previously it was a limited class
    • Now it is a fully featured struct
    • Current implementation just wraps Matrix4x4 from System.Numerics
  • SKRuntimeEffect is redesigned
    • Similar API, but far more powerful
    • Granular shader/color filter creation
    • Improved uniforms/children API
    • Comes with a builder
    • Check out this playground: https://shaders.skia.org/
  • SKFont is now a preferred API
    • Font APIs on SKPaint are all deprecated and will be removed
  • SKDrawable now has GetApproximateBytesUsed() which can be overridden
  • Added interop with the System.Numerics APIs
  • Removed types are:
    • SK3dView (this is now all available in the 4x4 matrix SKMatrix44)
    • SKMask
    • SKXamlWriter & SKXmlStreamWriter (this was only used by SVG-related things and really just wrapped a stream)

Behavioral Changes

Several changes TBD.

Required skia PR

None.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Merged related skia PRs
  • Changes adhere to coding standard
  • Updated documentation (this will be in a separate PR after another API review)

@mattleibow mattleibow linked an issue Aug 2, 2023 that may be closed by this pull request
@mattleibow mattleibow force-pushed the dev/update-skia-2 branch 2 times, most recently from 7e44373 to a44302b Compare August 3, 2023 15:39
@mattleibow mattleibow marked this pull request as ready for review August 14, 2023 20:41
@mattleibow mattleibow linked an issue Aug 16, 2023 that may be closed by this pull request
This was a large set of changes, both to the code as well as to new
requirements. The changes included:
- Updated skia
- Updated depot_tools (and this also needed changes
- Added/chnaged/removed C++ types
- Re-generated C# pinvokes
- Minimum OS versions changed:
   - Android: 21 (v5.0)
   - macOS: 10.13 (High Sierra)
   - Tizen: 6.0
   - tvOS: 11.0
   - Debiam: 10 (Buster)
- Updated macOS build agent to macOS 13 with Xcode 14.3.1
- Updated the Android NDK to r25c
- Updated Tizen Studio to 5.1
- Ninja is now a required dependency and not included in depot_tools
- Python is now used to run ninja instead of ninja run directly
The previous version was using i386
- Duplicate check in the Condition
- `USE_WEBGL2=1` is now required
There are several large changes here, some are:
- New color types
- New encoder options
- New sampling/filtering options
- SKMatrix is totally new
  - Previously it was a limited class
  - Now it is a fully featured struct
  - Current implementation just wraps Matrix4x4 from System.Numerics
- SKRuntimeEffect is redesigned
  - Similar API, but far more powerful
  - Granular shader/color filter creation
  - Improved uniforms/children API
  - Comes with a builder
- SKFont is now a preferred API
  - Font APIs on SKPaint are all deprecated and will be removed
- SKDrawable now has ApproximateBytesUsed
- Added interop with the System.Numerics APIs
- Removed types are:
  - SK3dView (this is now all available in the 4x4 matrix SKMatrix44)
  - SKMask
  - SKXamlWriter & SKXmlStreamWriter
@mattleibow mattleibow changed the base branch from develop to main August 17, 2023 15:23
@mattleibow mattleibow merged commit 86e79cb into main Aug 17, 2023
1 check passed
@mattleibow mattleibow deleted the dev/update-skia-2 branch August 17, 2023 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to the latest google/skia milestone [BUG] SKRuntimeEffect doesn't work on Bitmap Canvas
1 participant