Add Window::on_present_notify to ack about drawing
That's a way to communicate to winit that you'll present to the window. While it's a no-op for now, it'll be used to throttle drawing.
This commit is contained in:
parent
189a0080a6
commit
38f28d5836
12 changed files with 71 additions and 6 deletions
|
|
@ -74,6 +74,8 @@ impl Inner {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn pre_present_notify(&self) {}
|
||||
|
||||
pub fn inner_position(&self) -> Result<PhysicalPosition<i32>, NotSupportedError> {
|
||||
unsafe {
|
||||
let safe_area = self.safe_area_screen_space();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue