mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
libservo: Expose SoftwareRenderingContext
and WindowRenderingContext
(#35501)
Expose two easy-to-use wrappers around `SurfmanRenderingContext` that make the API simpler to use: - `WindowRenderingContext`: This `RenderingContext` is a newtype around `SurfmanRenderingContext` takes a `raw-window-handle` display and window and creates a full window rendering context. - `SoftwareRenderingContext`: is wraps `SurfmanRenderingContext` and adds a swap chain in order to expose a software GL rendering context. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
73507f58e6
commit
f34f2d9d0a
18 changed files with 514 additions and 470 deletions
|
@ -57,6 +57,7 @@ webxr = ["libservo/webxr"]
|
|||
webgpu = ["libservo/webgpu"]
|
||||
|
||||
[dependencies]
|
||||
dpi = { workspace = true }
|
||||
euclid = { workspace = true }
|
||||
libc = { workspace = true }
|
||||
libservo = { path = "../../components/servo", features = ["background_hang_monitor", "bluetooth"] }
|
||||
|
@ -67,6 +68,7 @@ getopts = { workspace = true }
|
|||
hitrace = { workspace = true, optional = true }
|
||||
mime_guess = { workspace = true }
|
||||
url = { workspace = true }
|
||||
raw-window-handle = { workspace = true }
|
||||
rustls = { workspace = true, features = ["aws-lc-rs"] }
|
||||
tokio = { workspace = true }
|
||||
tracing = { workspace = true, optional = true }
|
||||
|
@ -116,7 +118,6 @@ headers = { workspace = true }
|
|||
http = { workspace = true }
|
||||
net = { path = "../../components/net" }
|
||||
net_traits = { workspace = true }
|
||||
raw-window-handle = "0.6"
|
||||
serde_json = { workspace = true }
|
||||
shellwords = "1.0.0"
|
||||
surfman = { workspace = true, features = ["sm-x11", "sm-raw-window-handle-06"] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue