mirror of
https://github.com/servo/servo.git
synced 2025-06-20 07:08:59 +01:00
Stop hammering on the compositor
This commit is contained in:
parent
67eb533fc6
commit
d97f002111
2 changed files with 3 additions and 2 deletions
|
@ -193,10 +193,12 @@ fn run_main_loop(port: Port<Msg>,
|
|||
image_layer.common.set_transform(transform)
|
||||
}
|
||||
|
||||
*page_size = Size2D(page_width, page_height)
|
||||
*page_size = Size2D(page_width, page_height);
|
||||
|
||||
// TODO: Recycle the old buffers; send them back to the renderer to reuse if
|
||||
// it wishes.
|
||||
|
||||
window.set_needs_display()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -94,7 +94,6 @@ impl WindowMethods<Application> for Window {
|
|||
/// Presents the window to the screen (perhaps by page flipping).
|
||||
pub fn present(&mut self) {
|
||||
glut::swap_buffers();
|
||||
glut::post_redisplay();
|
||||
}
|
||||
|
||||
/// Registers a callback to run when a composite event occurs.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue