mirror of
https://github.com/servo/servo.git
synced 2025-09-04 03:58:23 +01:00
Make prepare_for_composite return void
This commit is contained in:
parent
7903104e6a
commit
3c0c10454b
5 changed files with 6 additions and 14 deletions
|
@ -510,9 +510,8 @@ impl WindowMethods for Window {
|
|||
self.animation_state.set(state);
|
||||
}
|
||||
|
||||
fn prepare_for_composite(&self) -> bool {
|
||||
fn prepare_for_composite(&self) {
|
||||
self.gl_context.borrow_mut().make_current();
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -194,7 +194,5 @@ impl WindowMethods for Window {
|
|||
self.animation_state.set(state);
|
||||
}
|
||||
|
||||
fn prepare_for_composite(&self) -> bool {
|
||||
true
|
||||
}
|
||||
fn prepare_for_composite(&self) { }
|
||||
}
|
||||
|
|
|
@ -580,10 +580,9 @@ impl EmbedderMethods for ServoEmbedderCallbacks {
|
|||
}
|
||||
|
||||
impl WindowMethods for ServoWindowCallbacks {
|
||||
fn prepare_for_composite(&self) -> bool {
|
||||
fn prepare_for_composite(&self) {
|
||||
debug!("WindowMethods::prepare_for_composite");
|
||||
self.host_callbacks.make_current();
|
||||
true
|
||||
}
|
||||
|
||||
fn present(&self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue