mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
servoshell: Port Android / OHOS servoshell to use the WebView API (#35192)
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
a6218b42ea
commit
c633ca1cde
6 changed files with 213 additions and 243 deletions
|
@ -291,6 +291,10 @@ impl WebView {
|
|||
self.0.compositor.borrow_mut().invalidate_native_surface();
|
||||
}
|
||||
|
||||
pub fn composite(&self) {
|
||||
self.0.compositor.borrow_mut().composite();
|
||||
}
|
||||
|
||||
pub fn replace_native_surface(&self, native_widget: *mut c_void, size: DeviceIntSize) {
|
||||
self.0
|
||||
.compositor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue