Skip to content

Commit d456fa8

Browse files
committed
Use CGDataProvider::new_direct
Allows us to get by with a single buffer, since it properly signals us when the buffer is and isn't in use.
1 parent 9870364 commit d456fa8

File tree

2 files changed

+172
-99
lines changed

2 files changed

+172
-99
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,11 @@ windows-sys = { version = "0.61.2", features = [
9595
# CoreGraphics (macOS/iOS/...) dependencies.
9696
[target.'cfg(target_vendor = "apple")'.dependencies]
9797
objc2 = "0.6.0"
98+
libc = "0.2.180"
9899
objc2-core-graphics = { version = "0.3.2", default-features = false, features = [
99100
"std",
100101
"objc2",
102+
"libc",
101103
"CGColorSpace",
102104
"CGDataProvider",
103105
"CGImage",

0 commit comments

Comments
 (0)