mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-14 20:40:05 +00:00
Skia: Update to latest release of Rust Skia bindings (#9663)
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / files-changed (push) Waiting to run
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, macos-14, stable) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, 1.88) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, 1.88) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-14) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.88) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / material-components (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / files-changed (push) Waiting to run
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, macos-14, stable) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, 1.88) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, 1.88) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-14) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.88) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / material-components (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
For details, see https://github.com/rust-skia/rust-skia/releases/tag/0.89.0
This commit is contained in:
parent
c0be4cd5d6
commit
00e5f59d9c
4 changed files with 21 additions and 11 deletions
|
@ -174,6 +174,8 @@ wgpu-27 = { package = "wgpu", version = "27", default-features = false }
|
|||
input = { version = "0.9.0", default-features = false }
|
||||
tr = { version = "0.1", default-features = false }
|
||||
fontique = { version = "0.6.0" }
|
||||
windows = { version = "0.62" }
|
||||
windows-core = { version = "0.62.0" }
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
|
|
@ -125,7 +125,7 @@ objc2-app-kit = { version = "0.3.2" }
|
|||
i-slint-renderer-skia = { workspace = true, features = ["default"] }
|
||||
|
||||
[target.'cfg(target_os = "windows")'.dependencies]
|
||||
windows = { version = "0.61.1", features = ["Win32_UI_WindowsAndMessaging"] }
|
||||
windows = { workspace = true, features = ["Win32_UI_WindowsAndMessaging"] }
|
||||
|
||||
[build-dependencies]
|
||||
cfg_aliases = { workspace = true }
|
||||
|
|
|
@ -31,6 +31,9 @@ unstable-wgpu-26 = [
|
|||
"dep:metal",
|
||||
"dep:foreign-types",
|
||||
"dep:ash",
|
||||
"dep:windows_58",
|
||||
"dep:windows-core",
|
||||
"dep:windows-core_58",
|
||||
]
|
||||
unstable-wgpu-27 = [
|
||||
"i-slint-core/unstable-wgpu-27",
|
||||
|
@ -39,6 +42,9 @@ unstable-wgpu-27 = [
|
|||
"dep:metal",
|
||||
"dep:foreign-types",
|
||||
"dep:ash",
|
||||
"dep:windows_58",
|
||||
"dep:windows-core",
|
||||
"dep:windows-core_58",
|
||||
]
|
||||
default = []
|
||||
|
||||
|
@ -57,7 +63,7 @@ pin-weak = "1"
|
|||
scoped-tls-hkt = "0.1"
|
||||
raw-window-handle = { version = "0.6", features = ["std"] }
|
||||
|
||||
skia-safe = { version = "0.88", features = ["gl"] }
|
||||
skia-safe = { version = "0.89", features = ["gl"] }
|
||||
glow = { workspace = true }
|
||||
unicode-segmentation = { workspace = true }
|
||||
|
||||
|
@ -77,11 +83,13 @@ softbuffer = { workspace = true, default-features = false }
|
|||
bytemuck = { workspace = true }
|
||||
|
||||
[target.'cfg(target_family = "windows")'.dependencies]
|
||||
windows = { version = "0.61.1", features = ["Win32", "Win32_System_Com", "Win32_Graphics", "Win32_Graphics_Dxgi", "Win32_Graphics_Direct3D12", "Win32_Graphics_Direct3D", "Win32_Foundation", "Win32_Graphics_Dxgi_Common", "Win32_System_Threading", "Win32_Security"] }
|
||||
windows_58 = { package = "windows", version = "0.58.0", features = ["Win32", "Win32_System_Com", "Win32_Graphics", "Win32_Graphics_Dxgi", "Win32_Graphics_Direct3D12", "Win32_Graphics_Direct3D", "Win32_Foundation", "Win32_Graphics_Dxgi_Common", "Win32_System_Threading", "Win32_Security"] }
|
||||
windows-core = { package = "windows-core", version = "0.61.0" }
|
||||
windows-core_58 = { package = "windows-core", version = "0.58.0" }
|
||||
skia-safe = { version = "0.88", features = ["d3d"] }
|
||||
windows = { workspace = true, features = ["Win32", "Win32_System_Com", "Win32_Graphics", "Win32_Graphics_Dxgi", "Win32_Graphics_Direct3D12", "Win32_Graphics_Direct3D", "Win32_Foundation", "Win32_Graphics_Dxgi_Common", "Win32_System_Threading", "Win32_Security"] }
|
||||
# Separate builds of the windows crate are needed until https://github.com/gfx-rs/wgpu/pull/6876 is
|
||||
# merged and released.
|
||||
windows_58 = { package = "windows", version = "0.58.0", optional = true, features = ["Win32", "Win32_System_Com", "Win32_Graphics", "Win32_Graphics_Dxgi", "Win32_Graphics_Direct3D12", "Win32_Graphics_Direct3D", "Win32_Foundation", "Win32_Graphics_Dxgi_Common", "Win32_System_Threading", "Win32_Security"] }
|
||||
windows-core = { workspace = true, optional = true }
|
||||
windows-core_58 = { package = "windows-core", version = "0.58.0", optional = true }
|
||||
skia-safe = { version = "0.89", features = ["d3d"] }
|
||||
wgpu-26 = { workspace = true, optional = true, features = ["dx12"] }
|
||||
wgpu-27 = { workspace = true, optional = true, features = ["dx12"] }
|
||||
|
||||
|
@ -92,7 +100,7 @@ objc2-foundation = { version = "0.3.2", default-features = false, features = ["s
|
|||
objc2-quartz-core = { version = "0.3.2", default-features = false, features = ["std", "objc2-metal", "CALayer", "CAMetalLayer", "objc2-core-foundation"] }
|
||||
objc2-app-kit = { version = "0.3.2", default-features = false, features = ["std", "NSResponder", "NSView"] }
|
||||
objc2-core-foundation = { version = "0.3.2", default-features = false, features = ["CFCGTypes"] }
|
||||
skia-safe = { version = "0.88", features = ["metal"] }
|
||||
skia-safe = { version = "0.89", features = ["metal"] }
|
||||
raw-window-metal = "1.0"
|
||||
|
||||
metal = { version = "0.31", optional = true }
|
||||
|
@ -104,13 +112,13 @@ read-fonts = { version = "0.35" }
|
|||
write-fonts = { version = "0.43" }
|
||||
|
||||
[target.'cfg(not(any(target_vendor = "apple", target_family = "windows")))'.dependencies]
|
||||
skia-safe = { version = "0.88", features = ["gl", "vulkan"] }
|
||||
skia-safe = { version = "0.89", features = ["gl", "vulkan"] }
|
||||
wgpu-26 = { workspace = true, optional = true, features = ["vulkan"] }
|
||||
wgpu-27 = { workspace = true, optional = true, features = ["vulkan"] }
|
||||
|
||||
[target.'cfg(any(target_os = "ios", target_os="windows", target_os="android", target_os="linux"))'.dependencies]
|
||||
# Text layout is enabled here just so that we can make use of the pre-built Skia libraries.
|
||||
skia-safe = { version = "0.88", features = ["textlayout"] }
|
||||
skia-safe = { version = "0.89", features = ["textlayout"] }
|
||||
|
||||
[build-dependencies]
|
||||
cfg_aliases = { workspace = true }
|
||||
|
|
|
@ -297,7 +297,7 @@ impl<'a> SkiaItemRenderer<'a> {
|
|||
}
|
||||
} else {
|
||||
let transform =
|
||||
skia_safe::Matrix::rect_to_rect(skia_safe::Rect::from(src), dst, None)
|
||||
skia_safe::Matrix::rect_2_rect(skia_safe::Rect::from(src), dst, None)
|
||||
.unwrap_or_default();
|
||||
self.canvas.concat(&transform);
|
||||
self.canvas.draw_image_with_sampling_options(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue