diff options
author | Martin Robinson <mrobinson@igalia.com> | 2025-02-18 15:50:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-18 14:50:41 +0000 |
commit | f34f2d9d0ab59dd4baa6a3a25849ece95861c461 (patch) | |
tree | e798148f24dc4b10bd4c3f90f0c82ddcddf3571f /components/servo/webview.rs | |
parent | 73507f58e63b130d91fcf6f1da13e643b9c469d3 (diff) | |
download | servo-f34f2d9d0ab59dd4baa6a3a25849ece95861c461.tar.gz servo-f34f2d9d0ab59dd4baa6a3a25849ece95861c461.zip |
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>
Diffstat (limited to 'components/servo/webview.rs')
-rw-r--r-- | components/servo/webview.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/servo/webview.rs b/components/servo/webview.rs index e659e5d3073..f7264607d37 100644 --- a/components/servo/webview.rs +++ b/components/servo/webview.rs @@ -414,4 +414,8 @@ impl WebView { .constellation_proxy .send(ConstellationMsg::SendError(Some(self.id()), message)); } + + pub fn paint_immediately(&self) { + self.inner().compositor.borrow_mut().composite(); + } } |